/* Base styles with wood grain texture */
:root {
  --primary: #2c2421;    /* Deep wood brown (logo text) */
  --secondary: #5d4037;  /* Warm wood tone (tagline) */
  --tertiary: #4e342e;  /* Rich accent brown */
  --light: #b6a168;     /* Paper-like background */
  --text: #594943;      /* Main text color */
  --highlight: #795548; /* Woodgrain accent */
  --accent: #008818;    /* Rich wood accent */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Link Styling */
a {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s ease;
}

/* Underline Effect (subtle and consistent) */
a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: var(--secondary);
  transition: width 0.3s ease;
}

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

/* Special treatment for navigation links (already has hover color) */
.nav-links a:hover {
  color: var(--secondary);
}

/* Button links (no underline) */
.btn, .btn:hover {
  text-decoration: none;
  color: var(--accent);
}

.btn::after {
  display: none;
}

/* Contact form links */
form a {
  color: var(--secondary);
}

form a:hover::after {
  background: var(--primary);
}

body {
  font-family: 'Galindo', serif;
  font-weight: 400;
  color: var(--text);
  background: url('../img/wood-grain.jpg') fixed;
  background-size: cover;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1 0 auto;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography & Section Titles */
/* Section Title Fixes */
.section-title {
  font-family: 'Galindo', serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--primary);
  position: relative;
  margin: 4rem 0 2rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.hero-text-header {
  font-family: 'Fredericka the Great', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.title-text {
  font-family: 'Galindo', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.secondary-text {
  font-family: 'Architects Daughter';
  color: var(--secondary);
  letter-spacing: 1px;
  display: block;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.page-subtext {
  font-family: 'Galindo', serif;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
header {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
}

.logo {
  position: relative;
  display: inline-block;
  font-family: 'Fredericka the Great';
  font-size: 3.2rem;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo span {
  font-family: 'Architects Daughter';
  font-size: 1.2rem;
  position: absolute;
  top: 40px;
  left: 25px;
  letter-spacing: 0;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--secondary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: black;
  text-shadow: 0 0px 3px rgba(255, 253, 200, 0.76);
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.hero p {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-weight: 700;
}

#introduction {
  position: relative;
  border-radius: 6px;
}

#introduction::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
}

/* Call-to-Action Button */
.btn {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 2px solid var(--secondary);
}

.btn:hover {
  background: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Featured Projects Section */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
}

.featured-project {
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.featured-project-img {
  height: 0;
  padding-top: 75%;
  overflow: hidden;
  position: relative;
}

.featured-project-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-project:hover .featured-project-img img {
  transform: scale(1.05);
}

.featured-project-content {
  padding: 1.5rem;
}

.featured-project h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.featured-project p {
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Gallery Section (General) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid var(--highlight);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-img {
  flex-grow: 1;
  height: 250px;
  background-color: #f8f6f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-content {
  padding: 1.5rem;
}

/* Project Detail Pages */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.project-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-image {
  position: relative;
  height: 0;
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-specs {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 8px;
}

.project-specs h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.5rem;
}

/* Blog & Notes Styling */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.blog-post {
  display: flex;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s;
}

.blog-post:hover {
  transform: translateY(-10px);
}

.blog-image {
  flex: 1;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.note-content h3 {
  color: var(--secondary);
  margin: 2rem 0 1rem;
  position: relative;
}

.note-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 50px;
  height: 2px;
  background: var(--highlight);
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

/* Footer */
footer {
  background: var(--tertiary);
  color: white;
  padding: 3rem 0 1rem;
  border-color: rgb(119, 77, 0);
  border-style: double;
  border-width: 6px;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #e0e0e0;
  margin-top: 2rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero {
    height: 85vh;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 5px rgba(0,0,0,0.1);
    z-index: 10;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .hero {
    height: 100vh;
    padding-top: 2rem;
  }

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

  .hero p {
    font-size: 1.2rem;
  }

  .featured-projects {
    grid-template-columns: 1fr;
  }

  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    flex-direction: column;
  }
  
  .project-detail {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: row; /* Keep logo and toggle on same line */
    justify-content: space-between;
  }
  #introduction::before {
    display: none;
  }
  
  .section-title {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.4rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }

}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

