/*
Theme Name: Delverse
Theme URI: https://delverse.com
Author: Delverse Team
Author URI: https://delverse.com
Description: Structural engineering and BIM services WordPress theme. Fully optimized for residential, commercial, and industrial engineering projects.
Version: 1.0.0
Text Domain: delverse
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  /* Colors */
  --primary: #ff3b30;
  --primary-hover: #e02b20;
  --primary-rgb: 255, 59, 48;
  --bg-dark: #0a0b0d;
  --bg-dark-card: #12141c;
  --bg-light: #ffffff;
  --bg-light-grey: #f5f6f8;
  --bg-beige: #f8f7f4;
  --text-dark: #0f1115;
  --text-grey: #626b7a;
  --text-light: #ffffff;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary { color: var(--primary); }
.text-light { color: var(--text-light); }
.text-grey { color: var(--text-grey); }

.bg-dark { background-color: var(--bg-dark); }
.bg-light-grey { background-color: var(--bg-light-grey); }
.bg-beige { background-color: var(--bg-beige); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 59, 48, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.section-tag {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-dark);
}

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

/* Header/Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(10, 11, 13, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-cta .btn:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(10, 11, 13, 0.75), rgba(10, 11, 13, 0.9)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover;
  color: var(--text-light);
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border-dark);
  padding-top: 40px;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* Case Studies */
.case-studies {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.case-study-card.full-width {
  grid-column: span 2;
}

.case-study-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #e5e7eb;
}

.case-study-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.case-study-card:hover .case-study-img-wrapper img {
  transform: scale(1.05);
}

.case-study-info {
  padding: 24px 0;
}

.case-study-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.case-study-desc {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.case-study-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 12px;
}

.case-study-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.case-study-link::after {
  content: '→';
  transition: var(--transition-smooth);
}

.case-study-link:hover {
  color: var(--primary);
}

.case-study-link:hover::after {
  transform: translateX(4px);
}

/* Our Services (Accordion layout) */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-beige);
}

.services-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 60px;
  align-items: flex-start;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background-color: var(--bg-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 24px 30px;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background-color: var(--bg-light);
}

.accordion-header .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.accordion-item.active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-item.active .accordion-header {
  color: var(--text-dark);
}

.accordion-item.active .accordion-header .icon {
  background-color: var(--primary);
  color: var(--text-light);
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 30px;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding-bottom: 30px;
}

.accordion-text {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.accordion-quote {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.accordion-details {
  display: flex;
  gap: 40px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.accordion-details span {
  display: block;
}

.accordion-details strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: 4px;
}

.accordion-content .btn-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.accordion-content .btn-link::after {
  content: '→';
  transition: var(--transition-smooth);
}

.accordion-content .btn-link:hover::after {
  transform: translateX(4px);
}

.services-visual {
  position: sticky;
  top: 120px;
  height: 480px;
  background-color: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: var(--transition-slow);
}

/* Our Process */
.process-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.process-card {
  position: relative;
  padding: 30px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 59, 48, 0.2);
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--text-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.process-card:hover .process-num {
  background-color: var(--primary);
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-grey);
  margin-bottom: 20px;
  line-height: 1.6;
}

.process-card .read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.process-footer {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-grey);
}

.process-footer a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--primary);
}

/* Banner strip */
.banner-strip {
  background-color: #0b0c0f;
  padding: 30px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
}

.banner-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.banner-btn {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.banner-btn::after {
  content: '→';
  transition: var(--transition-smooth);
}

.banner-btn:hover::after {
  transform: translateX(4px);
}

/* About Us */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.about-header-layout {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 60px;
  margin-bottom: 60px;
}

.about-header-layout h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.about-header-layout p {
  color: var(--text-grey);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-checklist {
  list-style: none;
}

.about-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.about-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--border-light);
  padding-top: 50px;
  margin-bottom: 50px;
}

.about-pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.about-pillar p {
  font-size: 0.9rem;
  color: var(--text-grey);
  line-height: 1.6;
}

.about-conclusion {
  text-align: center;
  font-size: 1rem;
  color: var(--text-grey);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Request Services Form & Info split */
.request-section {
  padding: 100px 0;
  background-color: var(--bg-light-grey);
}

.request-card {
  display: grid;
  grid-template-columns: 55% 45%;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.request-form-side {
  padding: 60px;
}

.request-form-side h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.request-form-side p {
  color: var(--text-grey);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-light-grey);
  border-radius: 4px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-light);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.request-form-side .btn {
  width: 100%;
  margin-bottom: 16px;
}

.form-notice {
  font-size: 0.8rem;
  color: var(--text-grey);
  text-align: center;
}

.request-info-side {
  background-color: var(--bg-dark-card);
  padding: 60px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-header {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-item .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Call to Action */
.cta-section {
  padding: 80px 0;
  background-color: #0d0e12;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-actions .btn {
  min-width: 240px;
}

.cta-email {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.cta-email a {
  color: var(--text-light);
  font-weight: 600;
  text-decoration: underline;
}

.cta-email a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  background: linear-gradient(rgba(10, 11, 13, 0.95), rgba(10, 11, 13, 0.98)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover;
  color: var(--text-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about .logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-light);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn {
  padding: 12px 20px;
  background-color: var(--primary);
  color: var(--text-light);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal-links a:hover {
  color: var(--text-light);
}

/* Mobile responsive menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .case-studies-grid {
    gap: 30px;
  }
  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-visual {
    height: 350px;
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem !important; }
  h2 { font-size: 2rem !important; }
  
  .header {
    height: 70px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-card.full-width {
    grid-column: span 1;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .about-header-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .request-card {
    grid-template-columns: 1fr;
  }
  
  .request-form-side,
  .request-info-side {
    padding: 40px 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .cta-section h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem !important; }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
}