/* ============================================
   Alarm Monitoring Systems - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a365d;
    --primary-dark: #0f2442;
    --accent: #e53e3e;
    --accent-dark: #c53030;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-600);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Forms */
.form-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-container .form-intro {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.form-checkbox label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 20px;
}

.form-disclaimer a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--accent-dark);
}

.error-message {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Content Page */
.content-page {
    padding: 60px 20px;
}

.content-page .container {
    max-width: 900px;
}

.content-page h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

.content-page h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.content-page p {
    margin-bottom: 20px;
    color: var(--gray-600);
    line-height: 1.8;
}

.content-page ul {
    margin: 20px 0;
    padding-left: 25px;
}

.content-page li {
    margin-bottom: 10px;
    color: var(--gray-600);
    position: relative;
    padding-left: 5px;
}

.content-page li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.content-page address {
    font-style: normal;
    background: var(--gray-50);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.content-page address p {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--gray-600);
}

.contact-info strong {
    color: var(--gray-800);
}

.business-hours {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
}

.business-hours h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.business-hours p {
    margin-bottom: 8px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-hero img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.value-card {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--white);
}

.footer address {
    font-style: normal;
    opacity: 0.8;
}

.footer address p {
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom .copyright {
    opacity: 0.9;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 25px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-banner h3 {
    margin-bottom: 8px;
}

.cookie-banner p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.cookie-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-modal-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.cookie-modal-close svg {
    width: 24px;
    height: 24px;
}

.cookie-option {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header label {
    font-weight: 600;
    color: var(--gray-800);
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.5;
}

.cookie-option p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

.cookie-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cookie-modal-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Print Styles */
@media print {
    .header, .cookie-banner, .cookie-modal {
        display: none !important;
    }
}
