/* Expertus Carpentry & Construction - Main Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-brand-red: #aa2128;
  --color-brand-black: #1A1A1A;
  --color-brand-grey: #333333;
  --color-brand-light: #F5F5F5;
  --color-white: #ffffff;
  --color-dark-text: #333333;
  --color-light-text: #666666;
}

body {
  font-family: 'Raleway', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--color-white);
  color: var(--color-brand-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fffefe;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-brand-light);
}

.nav-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  color: var(--color-brand-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  padding-left: 2rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-main {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.nav-logo-sub {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-brand-red);
}

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links.desktop {
  display: flex;
}

.nav-link {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  color: var(--color-brand-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-red);
}

.nav-btn {
  background-color: var(--color-brand-black);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
  background-color: var(--color-brand-red);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  color: var(--color-brand-black);
  font-size: 1.75rem;
}

.nav-links.mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-brand-light);
  flex-direction: column;
}

.nav-links.mobile.active {
  display: flex;
}

.nav-links.mobile .nav-link {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--color-brand-light);
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .nav-links.desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Main Content */
main {
  flex-grow: 1;
  padding-top: 6rem;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  align-items: flex-start;
}

.hero-left {
  background-color: #e8e8e8;
  padding: 2rem 1.5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
  border-radius: 1.5rem;
  height: 724px;
  margin-top: 2rem;
  margin-left: 2rem;
}

.hero-image {
  width: 13.8rem;
  height: 9.25rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.875rem;
  border: 4px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}

.hero-image img {
  width: 11.8rem;
  height: 7.75rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.hero-left h1 {
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 2rem;
  max-width: 31.25rem;
}

.hero-title-img {
  max-width: 24rem;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

.hero-logo {
  max-width: 16rem;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.875rem;
}

@media (min-width: 1024px) {
  .hero-left h1 {
    font-size: 4.5rem;
  }
}

.hero-left p {
  color: rgba(26, 26, 26, 0.7);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 28rem;
  line-height: 1.625;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background-color: var(--color-brand-black);
  color: var(--color-white);
  padding: 1.125rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  background-color: var(--color-brand-red);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--color-brand-black);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hero-right {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-right {
    min-height: 100vh;
  }
}

.hero-images-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.hero-image-top,
.hero-image-bottom {
  width: 100%;
  max-width: 90%;
  height: 350px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
  pointer-events: none;
}
  pointer-events: none;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 3rem;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  color: var(--color-white);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  font-weight: 700;
  opacity: 0.6;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background-color: var(--color-brand-light);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-label {
  color: var(--color-brand-red);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1875em;
  font-weight: 700;
}

.section-title {
  font-size: 1.25rem;
  line-height: 1.2;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-link {
  color: var(--color-brand-black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  border-bottom: 2px solid var(--color-brand-red);
  padding-bottom: 0.25rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: var(--color-brand-red);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  padding: 2rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--color-brand-red);
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-0.3rem);
}

.service-card.dark {
  background-color: var(--color-brand-black);
  color: var(--color-white);
}

.service-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-brand-red);
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

.service-card.dark p {
  color: #d1d5db;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.service-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-black);
}

.service-card.dark .service-item {
  color: #d1d5db;
}

.service-item-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: var(--color-brand-red);
  flex-shrink: 0;
}

/* Footer */
footer {
  background-color: var(--color-brand-black);
  color: var(--color-white);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-right: auto;
}

.footer-logo-img {
  height: 4rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo-main {
  font-size: 1.875rem;
  font-weight: 900;
}

.footer-logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  font-weight: 700;
  color: var(--color-brand-red);
}

.footer-text {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.625;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-brand-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-brand-red);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.0625em;
  margin-bottom: 1.5rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-item {
  color: #9ca3af;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-item:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-contact-icon {
  color: var(--color-brand-red);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-brand-grey);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

/* Trust Section */
.trust-section {
  padding: 6rem 0;
  background-color: var(--color-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-image {
  position: relative;
  font-size: 0;
}

.trust-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 1rem;
}

.trust-testimonial {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background-color: var(--color-brand-red);
  color: var(--color-white);
  padding: 2.5rem;
  max-width: 20rem;
  border-radius: 1rem;
  display: none;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .trust-testimonial {
    display: block;
  }
}

.trust-testimonial p {
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.trust-testimonial-author {
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.125em;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trust-content h2 {
  color: var(--color-brand-red);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1875em;
  font-weight: 700;
}

.trust-content h3 {
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .trust-content h3 {
    font-size: 2.25rem;
  }
}

.trust-content > p {
  color: #4b5563;
  line-height: 1.75;
  font-size: 1.125rem;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  color: #6b7280;
}

.form-input,
.form-select,
.form-textarea {
  background-color: var(--color-brand-light);
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-brand-red);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* Utility Classes */
.max-w-xl {
  max-width: 36rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.text-center {
  text-align: center;
}

.text-brand-red {
  color: var(--color-brand-red);
}

.text-brand-black {
  color: var(--color-brand-black);
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-400 {
  color: #9ca3af;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .block {
    display: block;
  }
}

.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* ─── Services Page ─────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.service-row {
  display: flex;
  gap: 4rem;
  align-items: stretch;
}

.service-row-reverse {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  .services-list {
    gap: 3.5rem;
  }

  .service-row,
  .service-row.service-row-reverse {
    flex-direction: column;
    gap: 2rem;
  }

  /* Give images a sensible fixed height when stacked */
  .service-row > div > img {
    height: 240px !important;
    width: 100%;
  }

  /* Reduce section and process block padding on mobile */
  .services-page-section {
    padding: 5rem 0 !important;
  }

  .process-block {
    padding: 3rem 1.5rem !important;
    margin-top: 4rem !important;
  }
}

/* Rotating SVG Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Circle Element Positioning */
#circle-element {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 999;
  width: 160px;
  height: 160px;
  display: none !important;
}

/* Show on medium screens and up */
@media (min-width: 768px) {
  #circle-element {
    display: block !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .hero-left {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 100%;
    min-height: auto;
    height: auto;
    border-radius: 1.5rem;
  }
  
  .hero-right {
    min-height: 400px;
  }
}
