/* 
TRADE ROCK CONSTRUCTION COMPANY LANDING PAGE
Main colors:
- Primary: #2E5172 (deep blue)
- Secondary: #D68C45 (earthy orange)
- Accent: #1E9A8A (teal)
- Background light: #F7F7F7
- Background dark: #2C3E50
- Text dark: #333333
- Text light: #FFFFFF
*/

/* Base Styles */
:root {
  --primary: #2E5172;
  --primary-dark: #1D3557;
  --secondary: #D68C45;
  --secondary-dark: #B27035;
  --accent: #1E9A8A;
  --bg-light: #F7F7F7;
  --bg-dark: #2C3E50;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-muted: #6C757D;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Remove margin from the site content container */
.site-content {
  margin: 0;
  padding: 0;
}

/* Ensure the primary content area has no spacing */
#primary {
  margin: 0;
  padding: 0;
}

/* Remove any default spacing from the main content */
.site-main {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

.section {
  padding: 100px 0;
}

.gray-bg {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
}

.separator {
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0 auto 20px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.primary-btn {
  background-color: var(--secondary);
  color: var(--text-light);
}

.primary-btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border: 1px solid var(--text-light);
  margin-left: 15px;
}

.secondary-btn:hover {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-3px);
}

.outlined-btn {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.outlined-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}



/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  margin-top: 0;
  padding-top: 0;
  /* Ensure the hero starts right after the navbar */
  position: relative;
  top: 0;
  /* Account for the admin bar height */
  margin-top: 0;
  padding-top: calc(32px + var(--wp--admin--admin-bar--height, 0px));

  @media (max-width: 768px) {
    width: 105%;
    height: 105vh;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.85));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.cta-buttons {
  margin-top: 30px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  text-align: center;
}

.stat-item {
  flex: 1;
  padding: 20px;
  border-right: 1px solid var(--gray-300);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: var(--text-light);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 81, 114, 0.1);
  border-radius: 50%;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Products Section */
.products-section {
  position: relative;
}

/* Product Tabs */
.product-tabs {
  margin-bottom: 40px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 40px;
}

.tab-nav li {
  padding: 15px 30px;
  margin: 0 10px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-nav li:hover {
  color: var(--secondary);
}

.tab-nav li.tab-active {
  color: var(--secondary);
}

.tab-nav li.tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active-tab {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-header {
  text-align: center;
  margin-bottom: 30px;
}

.tab-header h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.tab-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 81, 114, 0.1);
  border-radius: 50%;
}

.product-icon img {
  width: 40px;
  height: 40px;
}

.product-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Operations Section */
.operations {
  padding: 100px 0;
}

.operations-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.operations-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.operations-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.core-values {
  margin-top: 50px;
}

.core-values h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.value-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: rgba(214, 140, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.value-icon img {
  width: 25px;
  height: 25px;
}

.value-content h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.value-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.quality-assurance {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quality-image {
  flex: 1;
  height: 300px;
}

.quality-image img {
  width: 100%;
  height: 90%;
  object-fit: cover;
}

.quality-text {
  flex: 1;
  padding: 30px;
}

.quality-text h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.quality-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.operation-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.operation-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.operation-image {
  height: 200px;
  overflow: hidden;
}

.operation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.operation-card:hover .operation-image img {
  transform: scale(1.05);
}

.operation-info {
  padding: 25px;
  position: relative;
}

.operation-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.operation-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.operation-category {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--gray-200);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

.view-more-container {
  text-align: center;
  margin-top: 50px;
}

/* Sustainability Section */
.sustainability {
  background-color: var(--gray-100);
}

.sustainability-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.sustainability-text {
  flex: 1;
}

.sustainability-text p {
  margin-bottom: 30px;
  color: var(--text-dark);
  line-height: 1.7;
}

.sustainability-list {
  list-style: none;
}

.sustainability-list li {
  padding: 10px 0;
  position: relative;
  padding-left: 30px;
}

.sustainability-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--secondary);
  font-weight: bold;
}

.sustainability-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.sustainability-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-section {
  margin-top: 70px;
  text-align: center;
}

.partners-section h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.partners-section > p {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials Section */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.testimonial-item {
  flex: 1;
  min-width: 280px;
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  margin-bottom: 25px;
  position: relative;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-content::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: var(--gray-300);
  font-family: serif;
  z-index: -1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--gray-200);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.client-logos {
  margin-top: 60px;
  text-align: center;
}

.client-logos h3 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.logos-grid img {
  height: 45px;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.logos-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(46, 81, 114, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.info-icon img {
  width: 25px;
  height: 25px;
}

.info-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.info-item p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 5px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 81, 114, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.full-width {
  width: 100%;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Quality Assurance Section */
.quality-assurance {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  padding-bottom: 70px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.quality-assurance img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.quality-assurance-content {
  flex: 1;
}

.quality-assurance h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
}

.quality-assurance p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .quality-assurance {
    flex-direction: column;
    text-align: center;
  }

  .quality-assurance img {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Footer - This will be part of footer-landing.php */
.footer {
  background-color: var(--primary-dark);
  padding: 80px 0 20px;
  color: var(--text-light);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  flex: 1;
  min-width: 280px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links-column {
  flex: 1;
  min-width: 160px;
}

.footer h3 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer p {
  color: var(--gray-300);
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-light);
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    margin-top: 40px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--text-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 12px 0;
    width: 100%;
  }
  
  .nav-links a {
    color: var(--text-dark);
    display: block;
    padding: 8px 0;
    width: 100%;
  }
  
  .nav-cta {
    margin-top: 20px;
    width: 100%;
  }
  
  .nav-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .navbar.scrolled .nav-toggle span {
    background-color: var(--text-dark);
  }
  
  .secondary-btn {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .secondary-btn {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .services-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
}