/* Color palette derived from the CDC Services logo */
:root {
  --primary: #1C0404;
  --secondary: #2A0707;
  --darker: #160202;
  --accent: #E6C35A;
  --light: #FFFBE6;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(var(--secondary), var(--primary) 50%, var(--darker));
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

a:hover {
  color: #FFE39A;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--accent);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(var(--secondary), var(--primary) 50%, var(--darker));
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 75px;
}

nav a {
  color: var(--light);
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

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

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1200x600') center/cover no-repeat;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

.btn:hover,
.btn:active {
  background-color: #FFE39A;
  color: var(--primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

section {
  padding: 2rem 1rem;
  scroll-margin-top: 100px; /* Offset for sticky header */
}

.about,
.contact {
  background-color: var(--secondary);
}

.projects {
  background-color: var(--darker);
}

.projects .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.projects img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact form label {
  margin-top: 0.5rem;
}

.contact form input,
.contact form textarea {
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact form button {
  margin-top: 1rem;
  cursor: pointer;
}

.contact form label.privacy {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.contact form label.privacy input {
  margin-right: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #ff8a8a;
}

.contact-info {
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(var(--secondary), var(--primary) 50%, var(--darker));
  border-top: 1px solid var(--secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

.madebyphille-logo-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.madebyphille-logo {
  width: 120px;
  opacity: 0.7;
  display: block;
}

.madebyphille-left {
  font-family: 'Geostar', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 55px;
  font-weight: 400;
  fill: var(--accent);
}

.madebyphille-right {
  font-family: 'La Belle Aurore', cursive;
  font-size: 201px;
  font-weight: 400;
  fill: url(#phille-gradient);
}
