/* ===================================
   HIDALGOS PAINTING LLC - STYLESHEET
   =================================== */

/* CSS VARIABLES */
:root {
  /* Color Palette - Warm, Professional, Earthy */
  --primary-dark: #2c3e50;
  --primary-darker: #1a252f;
  --accent-gold: #d4a574;
  --accent-warm: #e67e22;
  --background-light: #faf8f5;
  --background-white: #ffffff;
  --text-dark: #2d3436;
  --text-medium: #636e72;
  --text-light: #b2bec3;
  --border-light: #e8e4df;
  --success: #27ae60;
  --error: #c0392b;
  --warning: #f39c12;
  
  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--background-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: #faf8f5;
}

header p {
  margin-top: var(--spacing-sm);
  font-size: 1.1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* NAVIGATION */
nav {
  background: var(--primary-darker);
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  padding: 1rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 3px solid transparent;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 80%;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold);
}

nav a.active {
  color: var(--accent-gold);
  font-weight: 600;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* HEADINGS */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  border-left: 5px solid var(--accent-gold);
  padding-left: var(--spacing-md);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--background-light) 100%);
  padding: var(--spacing-xxl) var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  border: none;
  padding: 0;
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* FEATURE CARDS */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.feature-card {
  background: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--accent-gold);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  filter: grayscale(20%);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* LISTS */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: #fff;
  margin: var(--spacing-sm) 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

ul li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}

ul li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
  margin-right: var(--spacing-sm);
  font-size: 1.1rem;
}

.benefits-list {
  display: grid;
  gap: var(--spacing-sm);
}

/* WHY CHOOSE SECTION */
.why-choose {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-xl) 0;
}

.why-choose h2 {
  text-align: center;
  border: none;
  padding: 0;
}

/* SERVICES PAGE */
.services-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #fff 0%, var(--background-light) 100%);
  border-radius: var(--radius-lg);
}

.services-intro h1 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

.services-intro p {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

.service-category {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.service-category:hover {
  box-shadow: var(--shadow-lg);
}

.category-description {
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--accent-warm);
}

/* GALLERY */
.gallery-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
}

.gallery-intro h1 {
  margin-bottom: var(--spacing-md);
}

.gallery-intro p {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gallery-item:hover .image-placeholder {
  opacity: 0.9;
  transform: scale(1.05);
}

.gallery-caption {
  padding: var(--spacing-lg);
  background: #fff;
}

.gallery-caption h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.gallery-caption p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* QUOTE PAGE */
.quote-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
}

.quote-intro h1 {
  margin-bottom: var(--spacing-md);
}

.quote-intro p {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

.quote-content {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.quote-content .form-container {
  width: 100%;
  max-width: 700px;
}

/* FORM */
.form-container {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: var(--spacing-sm) 0 var(--spacing-xs);
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

input,
textarea,
select {
  padding: 0.9rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background-light);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232c3e50' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

button[type="submit"] {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

button[type="submit"]:hover {
  background: var(--primary-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* CTA SECTION */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: #fff;
  padding: var(--spacing-xxl) var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-xxl);
  box-shadow: var(--shadow-lg);
}

.cta-section h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
  background: var(--accent-warm);
  color: #fff;
}

/* RESPONSE BANNER */
#responseBanner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  max-width: 90%;
  text-align: center;
}

#responseBanner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#responseBanner.success {
  background: var(--success);
}

#responseBanner.error {
  background: var(--error);
}

#responseBanner.warning {
  background: var(--warning);
  color: var(--text-dark);
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }
  
  nav {
    flex-direction: column;
  }
  
  nav a {
    text-align: center;
  }
  
  .hero {
    padding: var(--spacing-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    text-align: center;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.gallery-item {
  animation: fadeInUp 0.8s ease-out;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
