/* ============================================
   SOEI CONCRETE - MASTER STYLESHEET
   Mobile-First Design
   ============================================ */

:root {
  --primary-dark: #2a2a2a;
  --secondary-dark: #404040;
  --concrete-gray: #6b6b6b;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --accent-orange: #e74c3c;
  --accent-light: #ff6b47;
  --success: #27ae60;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-dark);
  background-color: var(--white);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 2rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--concrete-gray);
}

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

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--accent-orange);
  color: var(--white);
  border: 2px solid var(--accent-orange);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.btn:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
  background-color: var(--accent-orange);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* HEADER & NAVIGATION */
header {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-top {
  background-color: var(--secondary-dark);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.header-top-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.phone-number {
  font-weight: 700;
  color: var(--accent-orange);
  font-size: 1.1rem;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
}

.logo:hover {
  opacity: 0.8;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 1rem;
    border-top: 2px solid var(--secondary-dark);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--secondary-dark);
  }

  nav a::after {
    display: none;
  }

  .header-top-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-main {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* SECTIONS */
section {
  padding: 3rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--concrete-gray);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.85) 0%, rgba(64, 64, 64, 0.85) 100%), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="concrete" patternUnits="userSpaceOnUse" width="100" height="100"><rect fill="%23404040" width="100" height="100"/><circle cx="20" cy="20" r="8" fill="%23606060" opacity="0.5"/><circle cx="70" cy="35" r="6" fill="%23606060" opacity="0.5"/><circle cx="45" cy="80" r="7" fill="%23606060" opacity="0.5"/></pattern></defs><rect width="1200" height="600" fill="%232a2a2a"/><rect width="1200" height="600" fill="url(%23concrete)"/></svg>') center/cover;
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1rem;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
    min-height: 35vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    flex: 1;
    min-width: 120px;
  }
}

/* GRID LAYOUTS */
.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.card {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
}

.card-icon i {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.5;
  display: block;
  color: var(--accent-orange);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* SERVICE SECTION */
.services-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ABOUT SECTION */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-image {
  height: 400px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  opacity: 1;
  animation: slideshow 8s steps(1, end) infinite;
}

.about-image img:nth-child(2) {
  animation-delay: -4s;
}

@keyframes slideshow {
  0%, 50% {
    opacity: 1;
  }
  50.001%, 100% {
    opacity: 0;
  }
}

.highlight-list {
  list-style: none;
  margin: 2rem 0;
}

.highlight-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--primary-dark);
}

.highlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    height: 300px;
  }
}

/* PROJECTS/GALLERY SECTION */
.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--concrete-gray) 100%);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* IMAGE GALLERY */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.image-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--light-gray);
  aspect-ratio: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1024px) {
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

/* CONTACT SECTION */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  border-left: 4px solid var(--accent-orange);
  padding-left: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.form-group button {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* MAP CONTAINER */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid #e0e0e0;
}

/* FOOTER */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-dark);
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer {
    padding: 2rem 1rem;
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-dark {
  background-color: #FFFFFF;
  color: var(--primary-dark);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.opacity-75 {
  opacity: 0.75;
}

/* REVIEW SECTION */
.review-section {
  padding: 2rem 1rem;
  background-color: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.review-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.review-container:hover {
  transform: scale(1.02);
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
  color: #FFB81C;
}

.review-logo {
  height: 40px;
  width: auto;
  display: flex;
  align-items: center;
}

.review-text {
  text-align: center;
}

.review-rating {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.review-label {
  font-size: 0.9rem;
  color: var(--concrete-gray);
}

@media (max-width: 480px) {
  .review-container {
    flex-direction: column;
    gap: 1rem;
  }

  .review-stars {
    font-size: 1.25rem;
  }

  .review-rating {
    font-size: 1.5rem;
  }
}

/* FAQ ACCORDION */
.faq-item {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--light-gray);
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--light-gray);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--accent-orange);
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e8e8e8;
}

.faq-question::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  min-width: 1.2rem;
}

.faq-question.active::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.6;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
