/* === Debug Outline (Optional) === */
 /* {
  outline: 1px solid rgba(255, 0, 0, 0.2); /* Light red outline for debugging */
  /* box-sizing: border-box; */




/* === Base Styles === */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Helvetica Neue', sans-serif;
  background: #f4f4f7;
  color: #2c2c2c;
}

/* === Header === */
header {
  text-align: center;
  padding: 3rem 2rem;
  background: #2c2c2c;
  color: #f4f4f7;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* creative compass */
.creative-compass {
  background-color: #fefefe;
  padding: 4rem 2rem;
  text-align: center;
}

.compass-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.compass-inner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.compass-inner .intro,
.compass-inner .closing {
  font-size: 1.2rem;
  margin: 1.5rem auto;
  max-width: 700px;
  line-height: 1.6;
  color: #444;
}

.creative-compass {
  background-color: #fefefe;
  padding: 4rem 2rem;
  text-align: center;
}

.compass-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.compass-inner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.compass-inner .intro,
.compass-inner .closing {
  font-size: 1.2rem;
  margin: 1.5rem auto;
  max-width: 700px;
  line-height: 1.6;
  color: #444;
}

.compass-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.compass-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  max-width: 100%;
}

.compass-card:hover {
  transform: translateY(-5px);
}

.compass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.compass-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Responsive stacking on smaller screens */
@media (max-width: 1024px) {
  .compass-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .compass-columns {
    grid-template-columns: 1fr;
  }
}


/* === Section Headings === */
h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c2c2c;
}



/* === Grid Layouts (Updated) === */

/* === Grid Layouts (tighter centering) === */
.email-grid,
.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* NEW: center grid tracks within container */
}

@media (max-width: 768px) {
  .email-grid,
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    justify-items: center;  /* NEW: center items inside each cell */
  }
}

/* === Template Cards (precise centering) === */
.template-card {
  width: min(100%, 340px);  /* NEW: clean width cap */
  margin: 0 auto;           /* NEW: ensure card centers in the cell */
  padding: 0.75rem;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow-wrap: break-word;
  box-sizing: border-box;   /* NEW: avoid width calc surprises */
}

/* Ensure images don’t create stray inline spacing */
.template-card img {
  display: block;           /* NEW */
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}



/* === Card Content === */
.template-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.template-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* === Tags === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.tag {
  background-color: #e0e0f8;
  color: #4e4cb8;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* === CTA Button === */
.template-card a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #4e4cb8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.template-card a:hover {
  background: #6c63ff;
}


/* === Philosophy Section === */
.philosophy-section {
  width: 100%;
  background-color: #fdfaf6;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

.philosophy-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.philosophy-section h2 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  margin-bottom: 1rem;
  color: #2c2c2c;
}

.philosophy-section p {
  font-size: clamp(1rem, 4vw, 1.1rem);
  line-height: 1.6;
  color: #555;
  margin: 0 auto;
  max-width: 700px;
  padding: 0 0.5rem;
}


@media (max-width: 600px) {
  .philosophy-section h2 {
    font-size: 1.6rem;
  }

  .philosophy-section h3 {
    font-size: 1.2rem;
  }

  .philosophy-section p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}


/* === Footer === */
.footer-contact {
  background: #2c2c2c;
  color: #f4f4f7;
  padding: 2rem 1rem;
  text-align: center;
}

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

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background-color: #f4f4f7;
  color: #2c2c2c;
  min-width: 0;
}

textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background-color: #f4f4f7;
  color: #2c2c2c;
  resize: vertical;
}

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: #4e4cb8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: #6c63ff;
}

.footer-credit {
  margin-top: 4rem;         /* reduced spacing */
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  padding-bottom: 0rem;     /* adds breathing room at the bottom */
}


.footer-cta {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f4f4f7;
  border: 2px solid #6c63ff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.6;
  position: relative;
}


@keyframes wave {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.wave {
  display: inline-block;
  animation: wave 1.5s infinite;
  transform-origin: 70% 70%;
}


.footer-email-link {
  color: #6c63ff; /* base purple */
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-email-link:hover {
  color: #e88ab0; /* lighter lavender-purple for hover */
}
