/* VARIABLES */
:root {
  --primary-color: #1a1a1a;
  --accent-color: #A0522D;
  /* Earthy Copper/Sienna */
  --text-color: #333;
  --bg-color: #f4f4f4;
  --card-bg: #ffffff;
  --font-serif: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
  --spacing-unit: 20px;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* PARALLAX BACKGROUND */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 160vh;
  /* Significantly taller to prevent whitespace at bottom */
  background-image: url("../img/bridge/full-width.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  /* Initial transform to center and scale */
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: transform;
  /* Optimize for animation */
}

/* MAIN WRAPPER */
.main-wrapper {
  width: 100%;
  max-width: 800px;
  /* Slightly narrower for better reading experience */
  margin: 0 auto;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  /* More breathing room between cards */
}

/* CONTENT CARDS */
.content-card {
  background-color: var(--card-bg);
  padding: 80px 60px;
  border-radius: 1px;
  /* Sharper corners for "crisp" look */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  /* Very subtle shadow */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* TYPOGRAPHY & SECTIONS */
h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin: 0 0 15px 0;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 40px 0;
  color: var(--primary-color);
  letter-spacing: 0;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 30px 0;
  color: #555;
  line-height: 1.5;
}

h5 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

p,
.text-content {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  max-width: 650px;
  margin: 0 auto;
}

/* NEW CONTENT STYLES */
.work-pillar {
  margin-bottom: 50px;
  text-align: left;
}

.work-pillar h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Removed border-left glyph */
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  /* Subtle separator instead of heavy block */
  display: inline-block;
  /* Only underline the text */
}

.text-content a {
  color: var(--accent-color);
  border-bottom: 1px solid rgba(160, 82, 45, 0.3);
  transition: border-bottom-color 0.3s;
}

.text-content a:hover {
  border-bottom-color: var(--accent-color);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 1px;
  filter: grayscale(20%);
  /* Slight desaturation for "earthy" feel */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.gallery-item img:hover {
  filter: grayscale(0%);
  opacity: 0.95;
}

/* BUTTONS */
.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 42px;
  background-color: var(--primary-color);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-1px);
}

/* SOCIAL */
.social-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-links img {
  height: 22px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.social-links img:hover {
  opacity: 1;
}

/* FOOTER */
.footer-card {
  padding: 40px;
  background-color: transparent;
  box-shadow: none;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 60px 15px;
    gap: 40px;
  }

  .content-card {
    padding: 50px 25px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}