
/* CSS for Portillo Roofing LLC Website */
:root {
  --brand-blue: #004080;
  --brand-orange: #FF6600;
  --text-color: #333;
  --bg-light: #f9f9f9;
  --radius: 6px;
  --top-bar-height: 30px;
  --header-height: 80px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  padding-top: calc(var(--top-bar-height) + var(--header-height));
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Contact Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.9rem;
  z-index: 1000;
}
.top-bar .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.top-bar .top-text {
  flex: 1;
}
.top-bar .contact-link {
  margin-left: 1rem;
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 600;
}
.top-bar .phone {
  margin-left: auto;
  font-weight: 600;
}

/* Main Header */
.main-header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  max-height: calc(var(--header-height) - 20px);
  transition: transform 0.3s;
}
.logo img:hover {
  transform: scale(1.1);
}

/* Navigation */
.primary-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-item a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.nav-item a:hover {
  color: var(--brand-orange);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Hero / Slideshow */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: 80vh;
  overflow: hidden;
}
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.5rem;
}
.prev {
  left: 1rem;
}
.next {
  right: 1rem;
}
.fade {
  animation: fade 1s;
}
@keyframes fade {
  from { opacity: 0.4; }
  to   { opacity: 1;   }
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, background 0.3s;
}
.btn-primary:hover {
  transform: scale(1.05);
  background: #e65c00;
}

/* Sections */
.services, .projects, .about, .contact {
  padding: 4rem 0;
}

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

/* Cards */
.card, .project-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover, .project-item:hover {
  transform: translateY(-5px);
}
.card h2 {
  margin-bottom: 1rem;
}
.card ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
.card ul li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: inherit;
}
.contact button {
  align-self: start;
}

/* Footer */
.site-footer {
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}
.footer-info p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .primary-nav .nav-list {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .primary-nav.open .nav-list {
    display: flex;
  }
  .nav-item a {
    padding: 0.75rem 1rem;
  }
}
