:root {
  --white: #FFFFFF;
  --charcoal: #36454f;
  --berry-purple: #690C5E;
  --dark-green: #0c694d;
  --cyan: #0c5669;
  
  --max-width: 1200px;
  --section-spacing: 6rem;
  --text-spacing: 1.75rem;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: var(--text-spacing);
  max-width: 70ch;
}

a {
  color: var(--berry-purple);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus {
  outline: 2px solid var(--berry-purple);
  outline-offset: 4px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(54, 69, 79, 0.1);
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--berry-purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:focus {
  outline: none;
}

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px - 150px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-spacing) 2rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation: fadeIn 0.8s ease 0.2s both;
}

.hero-content p {
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero-image {
  position: relative;
  animation: fadeIn 0.8s ease 0.6s both;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(105, 12, 94, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(105, 12, 94, 0.2);
}

/* Accent Elements */
.accent-line {
  width: 80px;
  height: 3px;
  background: var(--berry-purple);
  margin: 2.5rem 0;
  animation: expandLine 0.8s ease 0.8s both;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* Contact Form */
.contact-intro {
  margin-bottom: 3rem;
}

.contact-intro p {
  font-size: 1.25rem;
}

form {
  max-width: 600px;
  animation: fadeIn 0.8s ease 0.4s both;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

input,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(54, 69, 79, 0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background-color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--berry-purple);
  box-shadow: 0 0 0 3px rgba(105, 12, 94, 0.1);
}

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

button[type="submit"] {
  background-color: var(--berry-purple);
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background-color: #7f0e72;
  transform: translateY(-2px);
}

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

button[type="submit"]:focus {
  outline: 2px solid var(--berry-purple);
  outline-offset: 4px;
}

.success-message {
  display: none;
  padding: 1.25rem;
  background-color: rgba(12, 105, 77, 0.1);
  border-left: 4px solid var(--dark-green);
  color: var(--dark-green);
  margin-top: 1.5rem;
  border-radius: 4px;
  animation: fadeIn 0.5s ease;
}

.success-message.show {
  display: block;
}

.error {
  border-color: #c41e3a !important;
}

.error-message {
  color: #c41e3a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Footer */
footer {
  background-color: rgba(54, 69, 79, 0.05);
  border-top: 1px solid rgba(54, 69, 79, 0.1);
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--charcoal);
  margin: 0;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--charcoal);
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--berry-purple);
  transform: translateY(-2px);
  opacity: 1;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .container {
    padding: var(--section-spacing) 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-image img {
    max-width: 250px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
