/* style.css - Alberto General Construction Professional Styles */
:root {
  --primary: #004080;
  --secondary: #003366;
  --accent: #e53e3e;
  --light: #f5f5f5;
  --dark: #333;
  --header-dark: #1a3a5f;
  --header-light: #2c5282;
  --nav-dark: #2d3748;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header with Logo */
header {
  background: linear-gradient(135deg, var(--header-dark) 0%, var(--header-light) 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  width: auto;
  border-radius: 5px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  color: #e2e8f0;
  text-align: right;
  max-width: 300px;
}

/* Navigation */
nav {
  background-color: var(--nav-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #4a5568;
}

/* Photo Gallery (for index.html) */
.photo-gallery {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slideshow 20s infinite;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animation delays for each slide */
.gallery-slide:nth-child(1) { animation-delay: 0s; }
.gallery-slide:nth-child(2) { animation-delay: 4s; }
.gallery-slide:nth-child(3) { animation-delay: 8s; }
.gallery-slide:nth-child(4) { animation-delay: 12s; }
.gallery-slide:nth-child(5) { animation-delay: 16s; }

@keyframes slideshow {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 3rem 2rem 2rem;
  z-index: 10;
}

.gallery-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gallery-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Container and Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  padding: 2rem;
  width: 100%;
}

h1, h2, h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  background-color: #c53030;
  transform: translateY(-2px);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  border: 1px solid #e2e8f0;
}

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

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

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: #2d3748;
  margin-bottom: 0.5rem;
}

/* CEO Profile */
.ceo-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%;
}

.ceo-profile img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  flex-shrink: 0;
}

.ceo-profile .service-content {
  flex: 1;
}

.ceo-profile h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.ceo-profile p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Features List */
.features-list {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%;
}

.features-list ul {
  list-style: none;
  padding-left: 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
}

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

.features-list li i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.features-list strong {
  margin-right: 0.5rem;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.contact-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Form Styles */
form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.form-group {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.form-row {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

/* Social Media */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-media a {
  color: var(--primary);
  font-size: 2rem;
  transition: color 0.3s;
}

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

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.process-step {
  text-align: center;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.value-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.value-card i {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary);
}

/* Certifications */
.certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.certifications img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Footer */
footer {
  background-color: var(--nav-dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Normal text paragraph styling */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Remove all white-space: nowrap properties that were causing issues */

/* Responsive Design - SIMPLIFIED VERSION */
@media (max-width: 768px) {
  /* Adjust header for mobile */
  header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-container {
    flex-direction: row;
    justify-content: center;
  }

  .tagline {
    text-align: center;
    max-width: 100%;
  }

  /* Adjust navigation for mobile */
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* Adjust photo gallery for mobile */
  .photo-gallery {
    height: 300px;
  }

  .gallery-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .gallery-overlay h1 {
    font-size: 1.5rem;
  }

  .gallery-overlay p {
    font-size: 1rem;
  }

  /* Adjust container padding */
  .container {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Adjust CEO profile for mobile */
  .ceo-profile {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .ceo-profile img {
    width: 120px;
    height: 120px;
  }

  /* Adjust form layout for mobile */
  .form-group {
    grid-template-columns: 1fr;
  }

  /* Adjust service grid for mobile */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust footer links for mobile */
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  .gallery-overlay h1 {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}