<?php
require_once 'includes/header.php';

// Meta tags for SEO optimization
$meta_title = "Kontakt - Hugong Aparati - Profesionalni aparati za zavarivanje";
$meta_description = "Kontaktirajte Hugong Aparate - ovlašćenog distributera Hugong aparata za zavarivanje u Srbiji. Posetite nas u Kragujevcu ili nas pozovite za više informacija o našim proizvodima.";
?>

<!-- Breadcrumbs -->
<div class="breadcrumbs-wrapper" style="margin-top:0;">
    <div class="container">
        <nav class="breadcrumbs" aria-label="breadcrumb">
            <ol class="breadcrumb-list">
                <li><a href="/">Početna</a></li>
                <li class="active">Kontakt</li>
            </ol>
        </nav>
    </div>
</div>

<section class="contact-section">
    <div class="container">
        <div class="contact-intro">
            <h1 class="section-title">Kontaktirajte nas</h1>
            <p class="section-subtitle">Imate pitanje o nekom od naših proizvoda? Želite više informacija o karakteristikama aparata ili dostupnosti? Naš stručni tim vam je na raspolaganju za sve informacije i konsultacije.</p>
        </div>
        
        <div class="contact-layout">
            <div class="contact-info">
                <div class="info-card">
                    <div class="info-icon">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
                            <path d="M16 2v4"></path>
                            <path d="M8 2v4"></path>
                            <path d="M3 10h18"></path>
                        </svg>
                    </div>
                    <h3>Radno vreme</h3>
                    <p>Ponedeljak - Petak: 08:00 - 16:00<br>Subota: 09:00 - 14:00<br>Nedelja: Zatvoreno</p>
                </div>
                
                <div class="info-card">
                    <div class="info-icon">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
                            <circle cx="12" cy="10" r="3"></circle>
                        </svg>
                    </div>
                    <h3>Adresa</h3>
                    <p>Oskara Daviča 2<br>34000 Kragujevac<br>Srbija</p>
                </div>
                
                <div class="info-card">
                    <div class="info-icon">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>
                        </svg>
                    </div>
                    <h3>Telefon</h3>
                    <p><a href="tel:<?php echo str_replace(' ', '', get_setting('contact_phone', '+381 65 8065 065')); ?>"><?php echo get_setting('contact_phone', '+381 65 8065 065'); ?></a></p>
                </div>
                
                <div class="info-card">
                    <div class="info-icon">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                            <polyline points="22,6 12,13 2,6"></polyline>
                        </svg>
                    </div>
                    <h3>Email</h3>
                    <p><a href="mailto:<?php echo get_setting('contact_email', 'info@hugong-aparati.rs'); ?>"><?php echo get_setting('contact_email', 'info@hugong-aparati.rs'); ?></a></p>
                    <p><a href="mailto:info@agras.rs">info@agras.rs</a></p>
                </div>
            </div>
            
            <div class="company-details">
                <div class="company-card">
                    <h3>Podaci o firmi</h3>
                    <ul class="company-info-list">
                        <li>
                            <strong>Naziv firme:</strong> AGRAS D.O.O.
                        </li>
                        <li>
                            <strong>PIB:</strong> 123456789
                        </li>
                        <li>
                            <strong>Matični broj:</strong> 12345678
                        </li>
                        <li>
                            <strong>Ogranak:</strong> AGRAS - Internet prodaja
                        </li>
                        <li>
                            <strong>Direktor:</strong> Aleksandar Sekulić
                        </li>
                        <li>
                            <strong>Žiro račun:</strong> 160-6000001790434-25 (Banka Intesa)
                        </li>
                    </ul>
                </div>
                
                <div class="about-card">
                    <h3>O nama</h3>
                    <p>Kompanija AGRAS D.O.O. je ovlašćeni distributer Hugong aparata za zavarivanje u Srbiji. Sa preko 15 godina iskustva u prodaji i servisu opreme za zavarivanje, garantujemo najviši kvalitet proizvoda i usluga.</p>
                    <p>Svi naši aparati dolaze sa garancijom od 25 meseci, a obezbeđeni su rezervni delovi u narednih 7 godina.</p>
                    <a href="/o-nama.php" class="btn-secondary">Saznajte više o nama</a>
                </div>
            </div>
        </div>
        
        <div class="map-container">
            <h2 class="section-title">Kako do nas</h2>
            <div class="map-wrapper">
                <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3404.7975805162423!2d20.87227357654475!3d43.993587830348574!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x475721ccea02abdb%3A0xdefec04b5ad1c4c5!2sHugong%20aparati!5e1!3m2!1ssr!2srs!4v1742309191339!5m2!1ssr!2srs" width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
            </div>
        </div>
    </div>
</section>

<style>
/* Contact Page Styles */
.contact-section {
    padding: 40px 0 60px;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    margin: 0 auto 15px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.info-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--primary-color);
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-card, .about-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.company-card h3, .about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.company-info-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.company-info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.company-info-list li:last-child {
    border-bottom: none;
}

.company-info-list strong {
    font-weight: 600;
    color: var(--secondary-color);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.map-container {
    text-align: center;
}

.map-container .section-title {
    margin-bottom: 25px;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-intro {
        margin-bottom: 30px;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}
</style>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "ContactPage",
  "mainEntity": {
    "@type": "Organization",
    "name": "Hugong Aparati",
    "url": "https://hugong-aparati.rs",
    "logo": "https://hugong-aparati.rs/uploads/hugong-logo.png",
    "description": "Ovlašćeni distributer Hugong aparata za zavarivanje u Srbiji sa garancijom od 25 meseci i besplatnom isporukom.",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "Oskara Daviča 2",
      "addressLocality": "Kragujevac",
      "postalCode": "34000",
      "addressCountry": "RS"
    },
    "telephone": "<?php echo get_setting('contact_phone', '+381 65 8065 065'); ?>",
    "email": "<?php echo get_setting('contact_email', 'info@hugong-aparati.rs'); ?>",
    "openingHours": "Mo-Fr 08:00-16:00, Sa 09:00-14:00",
    "contactPoint": {
      "@type": "ContactPoint",
      "telephone": "<?php echo get_setting('contact_phone', '+381 65 8065 065'); ?>",
      "contactType": "customer service",
      "availableLanguage": "Serbian"
    }
  }
}
</script>

<?php require_once 'includes/footer.php'; ?>