/* ============================================
   Hammers Design — Main Stylesheet
   Design Agency, Wichita Falls, TX
   "Bright Ideas, Brilliant Results"
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --hd-bg-dark: #333847;
  --hd-bg-darker: #282c38;
  --hd-bg-section: #3a3f50;
  --hd-accent: #f0e9dc;
  --hd-accent-hover: #e8ddc8;
  --hd-gold: #c9a96e;
  --hd-gold-light: #ddc48e;
  --hd-white: #ffffff;
  --hd-text: #d4d4d4;
  --hd-text-muted: #9a9daa;
  --hd-border: rgba(240, 233, 220, 0.15);
  --hd-shadow: rgba(0, 0, 0, 0.25);
  --hd-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hd-max-width: 1200px;
  --hd-transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--hd-font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--hd-text);
  background-color: var(--hd-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--hd-gold);
  text-decoration: underline;
  transition: color var(--hd-transition);
}

a:hover,
a:focus {
  color: var(--hd-gold-light);
}

ul, ol {
  list-style-position: inside;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--hd-accent);
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

.text-accent {
  color: var(--hd-accent);
}

.text-gold {
  color: var(--hd-gold);
}

.text-center {
  text-align: center;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--hd-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--hd-bg-section);
}

.section--dark {
  background-color: var(--hd-bg-darker);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(40, 44, 56, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hd-border);
  transition: background-color var(--hd-transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--hd-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--hd-accent);
}

.logo img {
  width: 40px;
  height: 44px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--hd-text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hd-text-muted);
  transition: color var(--hd-transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--hd-accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--hd-accent);
  margin: 5px 0;
  transition: all var(--hd-transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--hd-bg-dark);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.hero-logo {
  width: 80px;
  height: 89px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 20px rgba(201, 169, 110, 0.3));
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.25em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .tagline {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hd-text-muted);
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--hd-text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-scroll {
  display: inline-block;
  width: 30px;
  height: 50px;
  border: 2px solid var(--hd-text-muted);
  border-radius: 15px;
  position: relative;
  margin-top: 2rem;
  text-decoration: none;
}

.hero-scroll::before {
  content: '';
  width: 4px;
  height: 10px;
  background: var(--hd-gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* --- Page Header (non-home pages) --- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background-color: var(--hd-bg-darker);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--hd-gold);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--hd-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--hd-text-muted);
}

.breadcrumb a {
  color: var(--hd-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--hd-gold);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--hd-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--hd-transition);
}

.btn--primary {
  background-color: var(--hd-gold);
  color: var(--hd-bg-dark);
}

.btn--primary:hover {
  background-color: var(--hd-gold-light);
  color: var(--hd-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--hd-accent);
  border: 2px solid var(--hd-accent);
}

.btn--outline:hover {
  background-color: var(--hd-accent);
  color: var(--hd-bg-dark);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background-color: var(--hd-bg-section);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--hd-border);
  transition: all var(--hd-transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--hd-shadow);
  border-color: rgba(201, 169, 110, 0.25);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--hd-text-muted);
  font-size: 0.95rem;
}

/* --- Service List --- */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--hd-text);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--hd-gold);
  border-radius: 50%;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  background-color: var(--hd-bg-section);
  border: 1px solid var(--hd-border);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(40, 44, 56, 0.95));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--hd-text-muted);
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial {
  text-align: center;
  padding: 2rem;
}

.testimonial blockquote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--hd-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--hd-gold);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  opacity: 0.5;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--hd-accent);
  font-size: 0.95rem;
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--hd-text-muted);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hd-accent);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--hd-font);
  font-size: 0.95rem;
  color: var(--hd-text);
  background-color: var(--hd-bg-section);
  border: 1px solid var(--hd-border);
  border-radius: 3px;
  transition: border-color var(--hd-transition), box-shadow var(--hd-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--hd-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

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

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: var(--hd-bg-section);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hd-border);
  transition: all var(--hd-transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--hd-shadow);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background-color: var(--hd-bg-darker);
  overflow: hidden;
}

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

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--hd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 a {
  text-decoration: none;
  color: var(--hd-accent);
}

.blog-card-body h3 a:hover {
  color: var(--hd-gold);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--hd-text-muted);
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Article --- */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-meta {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hd-border);
}

.article-meta .date {
  font-size: 0.85rem;
  color: var(--hd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-meta .author {
  font-size: 0.9rem;
  color: var(--hd-text);
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--hd-bg-section);
  border-radius: 6px;
  border: 1px solid var(--hd-border);
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 0.75rem;
}

.article-cta p {
  margin-bottom: 1.25rem;
  color: var(--hd-text-muted);
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--hd-bg-section);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--hd-text-muted);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--hd-bg-darker) 0%, var(--hd-bg-dark) 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--hd-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--hd-bg-darker);
  border-top: 1px solid var(--hd-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand img {
  width: 35px;
  height: 39px;
}

.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hd-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--hd-text-muted);
  margin-bottom: 1rem;
}

.footer-contact-info {
  font-size: 0.9rem;
  color: var(--hd-text-muted);
}

.footer-contact-info a {
  color: var(--hd-text-muted);
  text-decoration: none;
}

.footer-contact-info a:hover {
  color: var(--hd-gold);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hd-accent);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--hd-text-muted);
  text-decoration: none;
  transition: color var(--hd-transition);
}

.footer-links a:hover {
  color: var(--hd-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--hd-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--hd-text-muted);
}

.footer-bottom a {
  color: var(--hd-text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--hd-gold);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* --- Questionnaire --- */
.questionnaire-form {
  max-width: 700px;
  margin: 0 auto;
}

.questionnaire-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9daa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--hd-text);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hd-gold);
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hd-gold);
  margin-bottom: 0.25rem;
}

.stat-item .label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hd-text-muted);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3,
  .blog-grid,
  .portfolio-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  .section {
    padding: 3.5rem 0;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(40, 44, 56, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .blog-grid,
  .portfolio-grid,
  .values-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 8rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: 0.05em;
  }

  .hero .tagline {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .container {
    padding: 0 1rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
  }
}
