/* Complete CSS for The Unique Security PHP Site */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 72px; /* offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

/* Display */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.grid {
    display: grid;
}

/* Flexbox */
.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

/* Spacing */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Margins */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Dimensions */
.min-h-screen {
    min-height: 100vh;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-64 {
    width: 16rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-full {
    width: 100%;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-12 {
    height: 3rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-xs {
    max-width: 20rem;
}

/* Text */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: white;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-300 {
    color: #D1D5DB;
}

.text-blue-600 {
    color: #2563EB;
}

.text-blue-700 {
    color: #1D4ED8;
}

.text-blue-400 {
    color: #60A5FA;
}

.text-green-600 {
    color: #059669;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

/* Backgrounds */
.bg-white {
    background-color: white;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-50 {
    background-color: #F9FAFB;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.bg-blue-600 {
    background-color: #2563EB;
}

.bg-blue-700 {
    background-color: #1D4ED8;
}

.bg-blue-100 {
    background-color: #DBEAFE;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-900 {
    --tw-gradient-from: #111827;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0));
}

.via-gray-800 {
    --tw-gradient-stops: var(--tw-gradient-from), #1F2937, var(--tw-gradient-to, rgba(31, 41, 55, 0));
}

.to-gray-900 {
    --tw-gradient-to: #111827;
}

/* Hover states */
.hover\:bg-blue-700:hover {
    background-color: #1D4ED8;
}

.hover\:bg-gray-100:hover {
    background-color: #F3F4F6;
}

.hover\:text-blue-600:hover {
    color: #2563EB;
}

.hover\:text-blue-700:hover {
    color: #1D4ED8;
}

.hover\:text-blue-400:hover {
    color: #60A5FA;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

/* Borders */
.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-white {
    border-color: white;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.border-gray-300 {
    border-color: #D1D5DB;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-700 {
    border-color: #374151;
}

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Background utilities */
.overflow-hidden {
    overflow: hidden;
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.lg\:gap-x-8 {
    column-gap: 2rem;
}

.leading-6 {
    line-height: 1.5rem;
}

/* Transitions */
.transition-shadow {
    transition: box-shadow 0.15s ease-in-out;
}

/* About page values */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
}

.core-value-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.core-value-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Footer styles */
.site-footer {
    background-color: #0f172a;
    color: #f8fafc;
}
.site-footer .mx-auto {
    max-width: 1120px;
}
.site-footer .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.site-footer .footer-links {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer .footer-links h3 {
    font-size: 0.875rem;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f8fafc;
}
.site-footer .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .footer-links li + li {
    margin-top: 0.75rem;
}
.site-footer .footer-links a {
    color: #cbd5f5;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer .footer-links a:hover {
    color: #60a5fa;
}
.site-footer .footer-brand {
    max-width: 320px;
    margin-left: auto;
}
.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #f8fafc;
    text-decoration: none;
}
.site-footer .footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5f5;
    margin-bottom: 1.5rem;
}
.site-footer .footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    color: #cbd5f5;
}
.site-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.site-footer .footer-contact svg {
    flex-shrink: 0;
    color: #60a5fa;
    margin-top: 0.2rem;
}
.site-footer .footer-contact a {
    color: #cbd5f5;
    text-decoration: none;
}
.site-footer .footer-contact a:hover {
    color: #60a5fa;
}
.site-footer .footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (min-width: 1024px) {
    .site-footer .footer-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    .site-footer .footer-links {
        flex: 1 1 auto;
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }
    .site-footer .footer-brand {
        flex: 0 0 320px;
    }
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    .lg\:hidden {
        display: none !important;
    }
    body {
        padding-top: 88px; /* slightly larger offset on desktop */
    }
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }
    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .lg\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .lg\:py-40 {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
    .lg\:text-2xl {
        font-size: 1.5rem;
    }
    .lg\:text-4xl {
        font-size: 2.25rem;
    }
    .lg\:text-5xl {
        font-size: 3rem;
    }
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
    .lg\:text-7xl {
        font-size: 4.5rem;
    }
}

/* Advanced Contact Form Styles */
.advanced-contact-form {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: linear-gradient(135deg, #3b5998 0%, #2c4a7d 100%);
    padding: 1.5rem 2rem;
}

.form-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-body {
    padding: 2rem;
    background: #ffffff;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.required {
    color: #dc2626;
    font-weight: 400;
    font-size: 0.875rem;
}

.field-label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.field-note {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: block;
}

.g-recaptcha {
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    background-color: #f9fafb;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.full-width {
    grid-column: 1 / -1;
}

.submit-button {
    background-color: #1e40af;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.15s ease, transform 0.1s ease;
    align-self: flex-start;
    min-width: 120px;
}

.submit-button:hover {
    background-color: #1e3a8a;
}

.submit-button:active {
    transform: translateY(1px);
}

/* Alert messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Legacy form styles for compatibility */
input, textarea, select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.resize-none {
    resize: none;
}

/* Focus ring utility classes */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: rgb(59 130 246);
}

/* Button styles */
button {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
nav ul {
    list-style: none;
}

/* Mobile menu */
#mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
}

#mobile-menu.show,
#mobile-menu.visible {
    display: block;
}

/* Hamburger / mobile menu button styles: larger hit area and above other content */
#mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 70;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

#mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#mobile-menu-button svg {
    pointer-events: none;
    color: #111827;
}

/* Ensure button is hidden on desktop */
@media (min-width: 1024px) {
    #mobile-menu-button {
        display: none !important;
    }
}

.text-balance {
    text-wrap: balance;
}

/* Group hover effects */
.group:hover .group-hover\:block {
    display: block;
}

.object-cover {
    object-fit: cover;
}

/* Services grid helpers */
.services-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Provide consistent card height so the grid looks even */
    min-height: 300px;
    padding: 2rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #ffffff;
    border: 3px solid #2563EB; /* bright blue frame */
    border-radius: 8px;
    position: relative;
}

.services-grid > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(16,24,40,0.08);
}

/* Decorative corner brackets (top-left and bottom-right) */
.services-grid > div::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-top: 3px solid #2563EB;
    border-left: 3px solid #2563EB;
    pointer-events: none;
}

.services-grid > div::after {
    content: "";
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-bottom: 3px solid #2563EB;
    border-right: 3px solid #2563EB;
    pointer-events: none;
}

/* Icon circle */
.services-grid .w-12.h-12 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border: 3px solid rgba(37,99,235,0.12);
    color: #2563EB;
}

.services-grid h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

/* Keep the CTA on one line and push it to the bottom */
.services-grid a.inline-flex {
    margin-top: auto;
    white-space: nowrap;
}

/* Slightly reduce paragraph line-length inside cards for readability */
.services-grid p {
    max-width: 48ch;
    margin: 0.5rem auto 0;
    color: #374151;
}