/* ======================================================
   Emeradond LLC – Public Website Styles
   (NO dashboard / NO tables / NO portal JS dependencies)
   ====================================================== */

:root {
  --bg1:#021a14;
  --bg2:#0b3d2e;

  --card:#0f1f1a;
  --text:#ffffff;
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.55);

  --gold:#c8a84a;
  --line:rgba(255,255,255,.10);

  --shadow:0 20px 40px rgba(0,0,0,.45);
  --radius:14px;
}

/* ---------- Reset ---------- */

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg2), var(--bg1));

  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover { opacity: .9; }

/* ---------- Header ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 12px 24px;
  min-height: 64px;

  background: linear-gradient(135deg, var(--bg2), var(--bg1));
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #000;
  border-radius: 10px;

  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 20px;
}

.brand-title { font-weight: 700; }
.brand-subtitle {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: #fff;

  padding: 10px 14px;
  border-radius: 10px;

  cursor: pointer;
  font-weight: 700;
}

.btn:hover {
  background: rgba(255,255,255,.08);
}

.btn-ghost {
  background: transparent;
}

/* ---------- Layout ---------- */

.portal-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1100px;

  padding: 24px 24px 56px;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Cards ---------- */

.card {
  background: rgba(15,31,26,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 22px 24px;
}

.hero-card {
  padding: 28px 32px;
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 720px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Lists ---------- */

.approach-list {
  padding-left: 18px;
  margin: 12px 0 0;
}

.approach-list li {
  margin-bottom: 8px;
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.project-card {
  height: 120px;
  border-radius: 10px;
  overflow: hidden;

  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);

  transition: transform .15s ease, box-shadow .15s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: center;
  padding: 16px 24px;

  color: var(--muted2);
  font-size: 12px;
}
img {
  max-width: 100%;
  display: block;
}

/* ========== POLISH ENHANCEMENTS ========== */

/* Gold Dividers */
.card + .card {
  position: relative;
}

.card + .card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold), 
    transparent
  );
  opacity: 0.3;
}

/* Enhanced Project Card Hover */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(200, 168, 74, 0.15), 
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card img {
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Improved Card Spacing */
.page {
  gap: 36px;
}

.card {
  padding: 28px 30px;
}

/* Hero Card Enhancement */
.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--gold), 
    transparent
  );
  opacity: 0.4;
}

/* Section Headers with Gold Accent */
.card h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
  opacity: 0.6;
}

/* Subtle fade-in animation */
.card {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
/* ========== CONTACT PAGE STYLES ========== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Contact Info Card */
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-value {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.contact-value a {
  color: var(--text);
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--gold);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 168, 74, 0.3);
  background: var(--gold);
  opacity: 1;
}
/* Fix for contact page layout centering */
.portal-container {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px;
}

/* Contact page specific adjustments */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

/* Add gold divider between contact cards */
.contact-layout .card + .card::before {
  display: none; /* Remove the top divider for side-by-side cards */
}

/* Gold divider between hero and contact section */
.hero-card + .contact-layout::before {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold), 
    transparent
  );
  opacity: 0.3;
  margin: 0 auto 36px;
  position: relative;
  top: -18px;
}

/* Better spacing for contact items */
.contact-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:first-of-type {
  padding-top: 12px;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Improve form spacing */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Gold divider between hero card and contact section */
.hero-card + .contact-layout {
  position: relative;
  margin-top: 36px;
}

.hero-card + .contact-layout::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold), 
    transparent
  );
  opacity: 0.3;
}

/* Add spacing and divider between the two contact cards */
.contact-info-card {
  margin-bottom: 0;
}

.contact-form-card {
  position: relative;
  margin-left: 28px;
  padding-left: 32px;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent,
    var(--gold),
    var(--gold),
    transparent
  );
  opacity: 0.3;
}

/* On mobile, change to horizontal divider */
@media (max-width: 900px) {
  .contact-form-card {
    margin-left: 0;
    margin-top: 28px;
    padding-left: 24px;
  }
  
  .contact-form-card::before {
    left: 10%;
    right: 10%;
    top: -14px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, 
      transparent,
      var(--gold),
      transparent
    );
  }
}