/* HighlandManEdit - Main CSS */
/* Color Palette */
:root {
  --highland-mist-gray: #E9EFF2;
  --deep-fern: #1E3A2F;
  --heather-purple: #A89ABF;
  --stone-beige: #D8C9B5;
  --white: #FFFFFF;
  --text-dark: #1E3A2F;
  --text-light: #5A6B75;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.85;
  font-size: 16px;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.85;
}

a {
  color: var(--deep-fern);
  text-decoration: none;
  transition: color 0.4s ease;
}

a:hover {
  color: var(--heather-purple);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--highland-mist-gray);
  transition: box-shadow 0.4s ease;
  padding: 1.5rem 0;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--deep-fern);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--highland-mist-gray);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: parallax 0.3s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 47, 0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  color: var(--white);
  animation: fadeInUp 0.6s ease;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

/* Section Container */
.container {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 7vw;
}

section {
  padding: 6rem 0;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--highland-mist-gray);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--deep-fern);
  box-shadow: 0 8px 24px rgba(30, 58, 47, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--white);
}

thead {
  background-color: var(--highland-mist-gray);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--highland-mist-gray);
}

th {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

tr:hover {
  background-color: rgba(233, 239, 242, 0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: -0.01em;
  text-align: center;
  background: linear-gradient(135deg, var(--deep-fern) 0%, #2a4a3f 100%);
  color: var(--white);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 58, 47, 0.2);
}

.btn-secondary {
  background: var(--heather-purple);
  color: var(--white);
}

.btn-secondary:hover {
  background: #9680a8;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--highland-mist-gray);
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--white);
  color: var(--text-dark);
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--deep-fern);
  box-shadow: 0 0 0 3px rgba(30, 58, 47, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 7vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--highland-mist-gray);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--stone-beige);
}

.footer-bottom {
  max-width: 1620px;
  margin: 0 auto;
  padding: 2rem 7vw 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--highland-mist-gray);
}

/* Full Width Section */
.full-width {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 4rem 7vw;
  background: linear-gradient(180deg, var(--highland-mist-gray) 0%, var(--white) 100%);
  background-attachment: fixed;
}

/* Spacing Utilities */
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 4rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 4rem; }
.pt-6 { padding-top: 4rem; }
.pb-6 { padding-bottom: 4rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-accent { color: var(--deep-fern); }

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

@keyframes parallax {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cards {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .header-container {
    padding: 0 5vw;
  }
  
  .container {
    padding: 0 5vw;
  }
  
  .full-width {
    padding: 2rem 5vw;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .container, .full-width {
    padding: 0 4vw;
  }
  
  .btn {
    width: 100%;
  }
  
  input[type="email"],
  input[type="text"],
  textarea {
    font-size: 16px;
  }
}
