/*
Theme Name: Tons & Yards Theme
Theme URI: https://tonsandyards.com
Author: Tons & Yards Engineering Team
Author URI: https://tonsandyards.com/about/
Description: High-performance, zero-bloat WordPress theme for TonsAndYards.com commercial material takeoff calculators. Engineered for Google AdSense compliance, zero layout shift (CLS = 0.00), and 95+ PageSpeed scores.
Version: 1.0.0
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: tonsandyards
*/

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  background-color: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
.ty-site-header {
  background-color: #0F172A;
  border-bottom: 2px solid #D97706;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.ty-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.ty-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.ty-brand-logo {
  height: 44px;
  width: auto;
}

/* Desktop Navigation */
.ty-nav-menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .ty-nav-menu {
    display: flex;
  }
}
.ty-nav-item {
  position: relative;
}
.ty-nav-link {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ty-nav-link:hover, .ty-nav-link.active {
  color: #FFFFFF;
  background-color: #1E293B;
}

/* Dropdown Menu */
.ty-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0F172A;
  border: 1px solid #334155;
  border-radius: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  min-width: 240px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1001;
}
.ty-nav-item:hover .ty-dropdown {
  display: block;
}
.ty-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}
.ty-dropdown-link:hover {
  background-color: #D97706;
  color: #FFFFFF;
}

/* Header Actions */
.ty-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ty-badge-commercial {
  background-color: #1E293B;
  color: #FDE68A;
  border: 1px solid #D97706;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Main Content Area */
.ty-main-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Standard Page Layout (About, Contact, Legal) */
.ty-legal-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.375rem;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 860px;
  margin: 0 auto;
}
.ty-legal-wrapper h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
}
.ty-legal-wrapper .ty-meta-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 2rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.75rem;
}
.ty-legal-wrapper h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.ty-legal-wrapper p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.ty-legal-wrapper ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.ty-legal-wrapper li {
  margin-bottom: 0.5rem;
}

/* Footer Architecture */
.ty-site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  border-top: 4px solid #D97706;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}
.ty-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.ty-footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  border-left: 3px solid #D97706;
  padding-left: 0.5rem;
}
.ty-footer-col ul {
  list-style: none;
}
.ty-footer-col li {
  margin-bottom: 0.65rem;
}
.ty-footer-col a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.ty-footer-col a:hover {
  color: #D97706;
}
.ty-footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .ty-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.ty-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.ty-footer-legal-links a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ty-footer-legal-links a:hover {
  color: #FDE68A;
}

/* Container Utility */
.ty-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}