/*
 * File: styles.css
 * Description: Piano Life Saver DFW site stylesheet.
 * Created on: 2026-03-07
 * Version: v1.0.0
 * Author: R. Andrew Ballard (c) 2026 "Andwardo"
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fafaf7;
  color: #3a3a3a;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a2e1a;
}

h2 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.25em;
  font-weight: 600;
}

/* ===== GLOBAL LINKS ===== */
a {
  color: #1a5632;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2e8b57;
}

/* ===== HEADER ===== */
header {
  background: #1a2e1a;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  text-decoration: none;
}

.brand a:hover {
  color: #a8d5ba;
}

.brand-icon {
  font-size: 1.8em;
  color: #a8d5ba;
}

.brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-weight: 400;
  color: #a8d5ba;
  margin-left: 0.15em;
}

/* ===== NAVIGATION ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 0.25em;
  padding: 0;
  margin: 0;
}

nav a {
  color: #d4e8d4;
  padding: 0.5em 1.1em;
  font-weight: 400;
  font-size: 0.95em;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(168, 213, 186, 0.15);
}

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #a8d5ba;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a2e1a 0%, #2d5a3d 50%, #1a3a28 100%);
  padding: 6em 2em;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 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");
}

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4em;
  line-height: 1.15;
}

.hero p {
  font-size: 1.2em;
  color: #c8e0d0;
  margin-bottom: 1.8em;
  font-weight: 300;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.85em 2.2em;
  background: #a8d5ba;
  color: #1a2e1a;
  font-weight: 600;
  font-size: 1em;
  border: 2px solid #a8d5ba;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary:hover {
  background: transparent;
  color: #a8d5ba;
}

/* ===== INTRO SECTION ===== */
.intro {
  padding: 4em 0;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e8ece8;
}

.intro p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1em;
  color: #555;
}

/* ===== FEATURE CARDS ===== */
.features {
  padding: 4em 0;
  background: #f2f5f2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

.feature-card {
  background: #fff;
  padding: 2.5em 2em;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #dde5dd;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 86, 50, 0.1);
}

.feature-icon {
  font-size: 2.5em;
  color: #2e8b57;
  margin-bottom: 0.5em;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.feature-card p {
  color: #666;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 4em 0;
  background: #1a2e1a;
  text-align: center;
  color: #d4e8d4;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 1.5em;
  font-size: 1.05em;
}

/* ===== EXPLORE SECTION ===== */
.explore {
  padding: 3em 0;
  background: #fff;
}

.explore ul {
  list-style-type: square;
  padding-left: 1.5em;
  max-width: 700px;
}

.explore li {
  margin-bottom: 1em;
  color: #555;
}

.explore a {
  font-weight: 600;
  color: #1a5632;
}

.explore a:hover {
  color: #2e8b57;
}

/* ===== PRODUCTS PAGE ===== */
.page-header {
  background: linear-gradient(135deg, #1a2e1a, #2d5a3d);
  color: #fff;
  text-align: center;
  padding: 3em 2em;
}

.page-header h1 {
  color: #fff;
  font-size: 2.4em;
  margin: 0 0 0.3em;
}

.page-header p {
  color: #c8e0d0;
  font-size: 1.1em;
  margin: 0;
}

.product-section {
  padding: 4em 0;
  border-bottom: 1px solid #e8ece8;
}

.product-section:nth-child(even) {
  background: #f2f5f2;
}

.product-section:last-child {
  border-bottom: none;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.product-layout.reverse {
  direction: rtl;
}

.product-layout.reverse > * {
  direction: ltr;
}

.product-info h2 {
  font-size: 1.8em;
  margin-top: 0;
}

.product-info p {
  color: #555;
  margin-bottom: 1em;
}

.product-info ul {
  list-style: none;
  padding: 0;
}

.product-info ul li {
  padding: 0.4em 0;
  color: #555;
  position: relative;
  padding-left: 1.5em;
}

.product-info ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e8b57;
  font-weight: 700;
}

.product-image-placeholder {
  background: linear-gradient(135deg, #e8ece8, #d4e8d4);
  border-radius: 6px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5632;
  font-size: 1.1em;
  font-style: italic;
  border: 1px solid #ccd8cc;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 4em 0;
  background: #fff;
}

.about-content p {
  max-width: 780px;
  margin: 0 auto 1.5em;
  font-size: 1.05em;
  color: #555;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  padding: 4em 0;
  background: #fff;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.contact-form label {
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 0.2em;
  display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid #c5d1c5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  background: #fafaf7;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #2e8b57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

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

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

.contact-form button {
  padding: 0.85em 2em;
  background: #1a5632;
  color: #fff;
  border: 2px solid #1a5632;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #fff;
  color: #1a5632;
}

.contact-intro {
  max-width: 620px;
  margin: 0 auto 2em;
  text-align: center;
}

.contact-intro p {
  color: #555;
  font-size: 1.05em;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  background: #1a2e1a;
  color: #a8d5ba;
  padding: 1.2em 0;
  font-size: 0.9em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a2e1a;
    border-top: 1px solid rgba(168, 213, 186, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 0.5em 0;
  }

  nav a {
    display: block;
    padding: 0.9em 2em;
    border-radius: 0;
  }

  .header-inner {
    position: relative;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero {
    padding: 4em 1.5em;
  }

  .product-layout,
  .product-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .page-header h1 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 1.1em;
  }

  .hero h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.5em;
  }
}
