/* Ella Construction Group - Static Site Styles */
/* Design System: Gold #C8A85C, Charcoal #16181C, Warm #F5EFE5 */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #C8A85C;
  --charcoal: #16181C;
  --warm: #F5EFE5;
  --brown: #201E1B;
  --stroke: #DED8D4;
  --spacing-80: 80px;
  --spacing-40: 40px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus,
button:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Container & Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .col-4, .col-6, .col-8 { grid-column: span 12; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(22, 24, 28, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--warm);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--warm);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: var(--spacing-40) 0;
  border-top: 1px solid rgba(200, 168, 92, 0.2);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === MOBILE FIX A: Ensure hamburger menu items are visible on dark header === */
.mobile-menu,
.mobile-menu nav {
  color: var(--warm);
}

.mobile-menu nav a {
  color: var(--warm);
  font-weight: 500;
  font-size: 18px;
  padding: 10px 0;
  display: block;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus {
  color: var(--gold);
}
/* === END FIX A === */

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 15px rgba(200, 168, 92, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #B89842;
  box-shadow: 0 6px 20px rgba(200, 168, 92, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--charcoal);
  color: var(--warm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #1F2228;
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(22, 24, 28, 0.85), rgba(22, 24, 28, 0.35));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--spacing-80) 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 800px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  width: 1152px;
  height: 300px;
  aspect-ratio: 1152 / 300;
}

.hero-text {
  color: rgba(247, 244, 240, 1);
  font-size: 20px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  color: rgba(247, 244, 240, 0.9);
  font-size: 14px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* === MOBILE FIX B: Ensure hero/logo/text fits correctly on small screens === */
@media (max-width: 768px) {
  .hero-content {
    padding: var(--spacing-40) 20px;
  }

  .hero-logo {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    margin: 0 auto 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
    width: 100%;
  }
}
/* === END FIX B === */

/* Sections */
.section {
  padding: var(--spacing-80) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-40) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 48px;
  color: var(--brown);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 20px;
  color: rgba(32, 30, 27, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: white;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(200, 168, 92, 0.2);
}

.card-image {
  position: relative;
  height: 256px;
  overflow: hidden;
  aspect-ratio: 400 / 256;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(22, 24, 28, 0.9), rgba(22, 24, 28, 0.4), transparent);
}

.card-image h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--warm);
  font-size: 24px;
}

.card-content {
  padding: 24px;
}

.card-content p {
  color: rgba(32, 30, 27, 0.7);
  margin-bottom: 16px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: white;
  padding: 24px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  transition: border-color 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--gold);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 168, 92, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--warm);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(200, 168, 92, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 32px;
  }
}

.footer-section h3,
.footer-section h4 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-section p,
.footer-section li {
  color: rgba(247, 244, 240, 0.85);
  font-size: 14px;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(200, 168, 92, 0.2);
  color: rgba(247, 244, 240, 0.7);
  font-size: 14px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-40 { margin-bottom: var(--spacing-40); }
.mb-80 { margin-bottom: var(--spacing-80); }
.mt-40 { margin-top: var(--spacing-40); }
.mt-80 { margin-top: var(--spacing-80); }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .section-header h2 { font-size: 32px; }
  .hero-text { font-size: 18px; }
  .hero-stats { font-size: 12px; }
}
