/*
 * Global Stylesheet for KAZ Comércio Ltda. website
 *
 * This file defines the color palette, typography and layout rules
 * used across all pages. The palette leans toward shades of orange
 * accented by dark greys to convey energy, innovation and industrial
 * reliability. The layout uses flexible containers and responsive
 * utilities to ensure the site remains usable on both mobile and
 * desktop displays.
 */

/* Root variables for easy theme customization */
:root {
  --primary-color: #f05a28;        /* vibrant orange for highlights */
  --secondary-color: #333333;      /* dark grey for text and backgrounds */
  --accent-color: #ffa24b;         /* lighter orange for hover effects */
  --background-color: #ffffff;     /* default page background */
  --light-grey: #fafafa;           /* section backgrounds (lighter for clean look) */
  --text-color: #333333;           /* primary text color */
  --white: #ffffff;
  --shadow-color: rgba(0,0,0,0.1);
  --max-width: 1200px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Utility container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

/* Header and navigation */
header {
  background-color: var(--secondary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

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

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  /*
   * Use a lighter overlay on the hero image to create a clean, modern feel.
   * The gradient opacity has been reduced so the background imagery shows
   * through without overpowering the text.
   */
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 5rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Features / Services section on home */
.features {
  background-color: var(--light-grey);
  padding: 3rem 1rem;
  text-align: center;
}

.features h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--secondary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--white);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

/* About section on home */
.about-intro {
  padding: 3rem 1rem;
}

.about-intro h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--secondary-color);
}

.about-intro p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--secondary-color);
}

/* CTA banner on home page */
.cta-banner {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('../images/tech_bg.png');
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
  color: var(--white);
  text-align: center;
}

.cta-banner .cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner .cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About page logo */
.about-logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.about-logo img {
  max-width: 220px;
  height: auto;
}

/* Contact info list */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--secondary-color);
}

.contact-info li i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Values list with icons */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--secondary-color);
}

.values-list li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 2rem 1rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--white);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-color);
  font-weight: 500;
}

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

footer .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  transition: background-color 0.3s ease;
}

footer .social-icons a:hover {
  background-color: var(--accent-color);
}

/* Responsive navigation */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 65px;
    right: 0;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  nav ul.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    position: relative;
  }
}

/* Page-specific styling */
.page-header {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 2.2rem;
}

.content-section {
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.content-section h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Services page grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease;
}

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

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

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

.contact-form button {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}