/* ==========================================
   Blueprint Projects - Stylesheet
   ========================================== */

/* Color Variables */
:root {
    --primary-green: #51C2B0;
    --primary-green-accent: #3BA896;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}

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

body {
    font-family: 'Google Sans', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.125rem;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: .5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    padding: .5rem 0;
    transition: all 0.3s ease;
    background: var(--primary-green);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 62.5px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

.brand-text {
    color: var(--primary-blue);
    letter-spacing: 2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--primary-blue);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary-blue);
}

.navbar-toggler {
    border-color: transparent;
}

.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='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: url('../assets/granarolo_group_flags.jpg') center/cover no-repeat;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 35px;
  background: var(--primary-green);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.hero-overlay {
    position: absolute; 
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.7) 0%, rgba(0, 102, 179, 0.6) 100%);
}

.hero-content {
    position: relative;
    padding-top: 4rem;
    z-index: 2;
    color: var(--white);
}

.hero-section img.brand {
    width: 80vw;
    max-width: 800px;
    height: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

section.dark {
    background: var(--primary-green);
    color: var(--white);
}

section.dark.angled::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 35px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

/* Buttons */
.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-green-accent);
    color: var(--white);
    border: 2px solid var(--primary-green-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

a { color: var(--medium-gray); }
a:hover { color: var(--primary-green-accent); }

/* Contact Section */
.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-green-accent);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h5 {
    color: var(--primary-green-accent);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--medium-gray);
    margin: 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-green-accent);
    color: var(--white);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-icon-section {
        width: 100%;
        padding: 2rem;
    }
    
    .service-content {
        width: 100%;
    }
}

/* Utility Classes */
.text-primary-blue {
    color: var(--primary-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.text-accent-green {
    color: var(--accent-green);
}
