/*!
 * Theme Name: Western Skies Carpentry
 * Theme URI: https://westernskiescarpentry.com
 * Author: Western Skies Carpentry
 * Author URI: https://westernskiescarpentry.com
 * Description: A custom, modern WordPress theme for fine finish carpentry in Fort Collins, Colorado. Built with a mobile-first responsive approach and classic WordPress compatibility.
 * Version: 1.0.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: western-skies-carpentry
 * Domain Path: /languages
 * Requires at least: 5.0
 * Requires PHP: 7.4
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #dbcebb;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
@font-face {
  font-family: 'Bree Serif'; /* Define the custom font name */
  src:  url('./assets/fonts/BreeSerif-Regular.woff') format('woff'),
		url('./assets/fonts/BreeSerif-Regular.woff2') format('woff2'); /* Path to the font file and format */
  font-display: fallback; /* Define how the browser behaves during download */
}  
.sancreek-regular, h1, h3 {
  font-family: "Bree Serif", serif;
  font-weight: 400;
  font-style: normal;
}


h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  margin-bottom: 0.8em;
  color: #2c3e50;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  color: #99511f;
  text-align: center;
}

h2 {
  font-size: 1.75rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  border-bottom: 2px dotted #99511f;
  padding-bottom: .5rem;
  width: fit-content;

}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.2em;
	font-size: 1.2rem;
}

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

a:hover {
  color: #a5633d;
  text-decoration: underline;
}

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

button, input[type="button"], input[type="submit"] {
  cursor: pointer;
  background-color: #c97d4c;
  background-image: url('../../uploads/2026/02/btn-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  font-weight: 700;
  text-shadow: 0 0 5px black;
  color: white !important;
  transform: scale(1.05);

}
button:active, input[type="button"]:active, input[type="submit"]:active {
      transform: scale(0.98);
}
.large-button {
  padding: 16px 32px;
  font-size: 1.25rem;
}

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  min-height: calc(100vh - 200px);
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  background-color: #2d1e05;
  background-image: url('../../uploads/2026/03/dark-wood-texture.jpg');
  background-size: cover;
  padding: .5rem 0 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-header-bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #c97d4c;
    background-image: url('../../uploads/2026/02/wood-panel.png');
    background-repeat: no-repeat;
    background-size: cover;
}

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

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  max-width: 60px;
  height: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
}

.site-title a {
  color: #2c3e50;
}

.site-title a:hover {
  color: #c97d4c;
  text-decoration: none;
}

.site-tagline {
  font-size: 1rem;
  color: #ffffff;
  font-style: italic;
  margin-top: 0.25rem;
}

.header-call-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #c97d4c;
  background-image: url('../../uploads/2026/02/btn-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-call-button:hover {
  font-weight: 700;
  text-shadow: 0 0 5px black;
  color: white !important;
  transform: scale(1.05);
}

.header-call-button:active {
  transform: scale(0.98);
}

.call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
}

.call-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.call-text {
  display: none;
}

.footer-call-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #c97d4c;
  background-image: url('../../uploads/2026/02/btn-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.footer-call-button:hover {
  font-weight: 700;
  text-shadow: 0 0 5px black;
  color: white !important;
  transform: scale(1.05);
}

.footer-call-button:active {
  transform: scale(0.98);
}

.header-call-button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: stretch;
}
/* Show call text on larger screens */
@media (min-width: 768px) {
  .call-text {
    display: inline;
  }
}

/* ========================================
   NAVIGATION - MOBILE FIRST FLY-OUT MENU
   ======================================== */

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #2c3e50;
  z-index: 999;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 2rem;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-nav li {
  border-bottom: 1px solid rgba(236, 240, 241, 0.1);
}

.main-nav a {
  display: block;
  font-weight: 500;
  color: #ecf0f1;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  background-color: rgba(201, 125, 76, 0.1);
  color: #c97d4c;
  border-left-color: #c97d4c;
  padding-left: 2rem;
}

.main-nav .current-menu-ancestor > a {
  color: #c97d4c;
  border-left-color: #c97d4c;
}

/* Submenu styles */
.main-nav ul ul {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.1);
}

.main-nav li.menu-item-has-children > a::after {
  content: '▼';
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.main-nav li.menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

.main-nav ul ul.show {
  display: flex;
}

.main-nav ul ul a {
  padding-left: 3.5rem;
}

.main-nav ul ul a:hover,
.main-nav ul ul .current-menu-item > a {
  padding-left: 4rem;
}

/* ========================================
   MOBILE MENU TOGGLE BUTTON
   ======================================== */

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger-box {
  position: relative;
  width: 30px;
  height: 24px;
  display: inline-block;
}

.hamburger-inner {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fff;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fff;
  left: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Hamburger animation - active state */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: #2d1e05;
  background-image: url('../../uploads/2026/03/dark-wood-texture.jpg');
  background-size: cover;
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-top-decoration {
    position: absolute;
    margin-top: -3rem;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #c97d4c;
    background-image: url('../../uploads/2026/02/wood-panel.png');
    background-repeat: no-repeat;
    background-size: cover;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget {
  padding: 0 1rem;
}

.footer-widget h3 {
  color: #ecf0f1;
  margin-bottom: 1rem;
}

.footer-widget a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: #c97d4c;
  text-decoration: none;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget p {
  color: #bdc3c7;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1.5rem;
  text-align: center;
  color: #95a5a6;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */

.sidebar {
  padding: 0 1.5rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #c97d4c;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  color: #c97d4c;
}

.widget a:hover {
  color: #a5633d;
  text-decoration: underline;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.content {
  flex: 1;
  width: 100%;
}

.main-content-wrapper {
    display: flex;
}

.page-content,
.entry-content {
  width: 100%;
}

.entry-header {
  margin-bottom: 0;
}

.entry-title {
  margin-bottom: 0.5rem;
}

.entry-meta {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

.entry-meta a {
  color: #c97d4c;
}

.entry-meta a:hover {
  text-decoration: underline;
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-tags,
.entry-footer {
  font-size: 0.95rem;
}

.post-tags a,
.entry-footer a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #f8f9fa;
  border-radius: 3px;
  color: #c97d4c;
  transition: all 0.3s ease;
}

.post-tags a:hover,
.entry-footer a:hover {
  background-color: #c97d4c;
  color: white;
  text-decoration: none;
}

/* ========================================
   POST/PAGE LISTINGS
   ======================================== */

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-item {
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item .entry-title {
  margin-bottom: 0.5rem;
}

.post-item .entry-meta {
  margin-bottom: 1rem;
}

.post-excerpt {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #c97d4c;
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  background-color: #a5633d;
  text-decoration: none;
}

/* ========================================
   FORMS
   ======================================== */

form {
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c97d4c;
  box-shadow: 0 0 0 3px rgba(201, 125, 76, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin-bottom: 2rem;
}

.comment-list li {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-left: 4px solid #c97d4c;
}

.comment-author {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.comment-content {
  color: #555;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 1rem;
}

.reply a {
  color: #c97d4c;
  font-weight: 500;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination .page-numbers {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #c97d4c;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #c97d4c;
  color: white;
  text-decoration: none;
  border-color: #c97d4c;
}

.pagination .current {
  background-color: #c97d4c;
  color: white;
  border-color: #c97d4c;
}

/* ========================================
   UTILITIES & HELPERS
   ======================================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  margin: 0 auto 1.5rem;
  display: block;
}

.wp-caption {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.wp-caption img {
  margin-bottom: 0.5rem;
}

.wp-caption-text {
  color: #7f8c8d;
  font-size: 0.875rem;
  font-style: italic;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ========================================
   CUSTOM ELEMENTS
   ======================================== */

.site-header .main-nav a  {
  color: white;
}
.site-branding {
    max-width: 580px;
}
.home-page-hero {
    width: 100vw;
    position: absolute;
    left: 0;
}
.home-page-spacer {
    height: 700px;
}
.page-spacer {
    height: 40px;
}
table.houzz-badges {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    margin-bottom: -7%;
    box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.callout {
    background-color: rgba(255,255,255,0.5);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
}
.callout p {
  font-size: 1.25rem;
}
.callout button {
  margin: 0 auto;
  display: block;
}
#Services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#Services .card {
    background-color: rgba(255,255,255,0.5);
    padding: 2rem;
    border-radius: 1rem;
    display: flex; 
    flex-direction: column;
    width: 100%;
	max-width: 48%;
    margin: 10px auto;
    align-items: center;
}
#Services .card.secondary {
 max-width: unset;
}
.card-content-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
}
#Services .card ul {
    display: block;
    width: 100%;
    padding-right: 2rem;
}
.card-img-container {
    width: 80%;
    display: flex;
    justify-content: center;
}
#Cards {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 10px;
}
#Cards .card {
    background-color: rgba(255,255,255,0.5);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 48%;
    margin: 10px auto;
    align-items: center;
}
#Cards .card-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 300px;
}
#sp-ea-396.sp-easy-accordion>.sp-ea-single {
    background-color: #c97d4c !important;
    background-image: url('../../uploads/2026/03/med-wood-texture.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}
span.intro-text {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS (768px+)
   ======================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 30px;
  }

  .header-content {
    flex-wrap: nowrap;
  }

  .site-tagline {
    display: block;
  }
}
/* ========================================
   RESPONSIVE - PHONES (max-width: 980px)
   ======================================== */

@media (max-width: 980px) {
  .home-page-hero {
      left: 0;
  }
  table.houzz-badges {
    margin-bottom: -21%;
  }
  #Services {
    flex-direction: column;
  }
  .card {
    max-width: 100% !important;
  }
  .card-content-container {
    flex-direction: column-reverse;
  }
  .card ul {
    padding-left: 1rem;
  }
  .card-img-container {
    margin-bottom: 1rem;
  }
   #Services .card ul {
	font-size: 1.2rem;
	}
  #Cards {
    flex-wrap: wrap;
	}
}


/* ========================================
   RESPONSIVE DESIGN - DESKTOPS (1024px+)
   ======================================== */

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  .container {
    padding: 0 40px;
  }

  .main-nav ul {
    gap: 2.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .pagination,
  .comment-form {
    display: none;
  }

  body {
    color: #000;
    background-color: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
