/* =========================================================
   Cedar & Clay Workshop - Simple Stylesheet
   Fictional Classroom Project for HTML & CSS Learners
   Color Palette: Warm Brown, Deep Espresso, Rich Red, Cream
   ========================================================= */

/* 1. Base Reset & Typography
   Ensures consistent sizing and readable text across browsers. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #2b1810;          /* Dark brown text for high readability */
  background-color: #fdf8f5; /* Soft warm cream background */
}

/* 2. Accessibility Helpers
   Lets keyboard users skip past the navigation menu directly to content. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: #a61c1c;
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Clear focus ring for keyboard navigation on links, buttons, and inputs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a61c1c;
  outline-offset: 3px;
}

/* 3. Layout Container
   Centers page content and keeps line lengths comfortable to read. */
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* 4. Classroom Project Notice Banner
   Clearly labels the entire site as a fictional learning example. */
.classroom-banner {
  background-color: #8b1a1a; /* Deep red banner */
  color: #ffffff;            /* White text on dark background */
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
}

/* 5. Header & Navigation Menu
   Dark espresso brown header with white text and clear page links. */
.site-header {
  background-color: #3b2314; /* Dark brown background */
  color: #ffffff;
  padding: 1.25rem 0;
  border-bottom: 4px solid #a61c1c; /* Red accent stripe */
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
}

.site-tagline {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #f3e5dc; /* Light cream text on dark brown */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-nav a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-weight: bold;
}

.main-nav a:hover {
  background-color: #a61c1c; /* Red highlight on hover */
}

/* Highlights the link for the page currently being viewed */
.main-nav a[aria-current="page"] {
  background-color: #a61c1c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 6. Main Content & Sections */
main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  color: #3b2314;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
  border-bottom: 2px solid #d9c3b4;
  padding-bottom: 0.5rem;
}

/* Hero / Welcome Box on the Home Page
   Uses a dark brown background with crisp white text. */
.hero-box {
  background-color: #3b2314;
  color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border-left: 6px solid #a61c1c;
  margin-bottom: 2rem;
}

.hero-box h1,
.hero-box h2 {
  color: #ffffff;
  border-bottom: none;
  padding-bottom: 0;
}

/* Content Cards (used for About, Services, and Contact info) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #d9c3b4;
  border-top: 4px solid #5c3a21;
  border-radius: 6px;
  padding: 1.25rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

/* Example Price Label on the Services Page */
.price-tag {
  display: inline-block;
  background-color: #5c3a21;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* 7. Buttons
   Every button starts warm brown with white text and a subtle shadow.
   On hover (or focus), it turns red and strengthens its shadow. */
button,
.button {
  display: inline-block;
  background-color: #5c3a21; /* Warm brown default */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  font-weight: bold;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(43, 24, 16, 0.28); /* Subtle shadow */
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible {
  background-color: #a61c1c; /* Turns red on hover */
  box-shadow: 0 6px 14px rgba(43, 24, 16, 0.45); /* Stronger shadow */
  transform: translateY(-1px);
}

/* Adds a subtle light border when a button sits on a dark background */
.hero-box .button {
  border: 2px solid #f3e5dc;
}

/* 8. Demo Contact Form & Notice Box */
.demo-note {
  background-color: #f9e6e6;
  border-left: 5px solid #a61c1c;
  color: #4a1212;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.contact-form {
  background-color: #ffffff;
  border: 1px solid #d9c3b4;
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.35rem;
  color: #3b2314;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #8c6d58;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #2b1810;
  background-color: #fdf8f5;
}

/* 9. Footer
   Consistent dark brown footer on all four pages. */
.site-footer {
  background-color: #3b2314;
  color: #ffffff;
  padding: 1.5rem 0;
  border-top: 4px solid #a61c1c;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

/* 10. Small-Screen Adjustments (Mobile-Friendly) */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-box {
    padding: 1.35rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}
