/* ===== GLOBAL ===== */
body {
  font-family: "Inter", system-ui, sans-serif;
  background: #f8fafc;
  color: #1a202c;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.2em 0;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  line-height: 1;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f4e79; /* deep blue from palette */
}

.logo-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: #f97316; /* warm orange accent */
  letter-spacing: 1px;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 1.5em;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #1a202c;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #f97316;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 0.5em;
    gap: 1em;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  padding: 2em 0;
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 4em;
}

.footer-bottom p {
  margin: 0.4em 0;
}

.footer-links {
  margin: 0.1em 0;
}

.footer-links a {
  color: #718096;
  text-decoration: none;
  margin: 0 0.8em;
  font-size: 0.85rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-links a:hover {
  color: #1f4e79;
  text-decoration: underline;
}

/* Ensure footer stays at bottom if page is short */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 5em 0;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: #1f4e79;
  margin-bottom: 0.3em;
}

.hero-content .brand {
  color: #f97316;
}

.hero-content .subtitle {
  color: #4a5568;
  max-width: 600px;
  margin: 0.5em auto 1.5em auto;
  line-height: 1.5;
}

.cta-button {
  background: #1f4e79;
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #163a5c;
}

/* ===== CONTENT SECTIONS ===== */
section {
  margin-top: 4em;
}

section h2 {
  color: #1a202c;
  margin-bottom: 1.2em;
  text-align: center;
  font-size: 1.6rem;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8em;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5em;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card h3 {
  color: #1f4e79;
  margin-top: 0;
  font-size: 1.2rem;
}

.card p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 0.8em;
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .cta-button {
    font-size: 0.9rem;
  }
}


/* ===== PROJECTS PAGE ===== */
.page-hero {
  margin-top: 3em;
  text-align: center;
  margin-bottom: 2.5em;
}

.page-hero h1 {
  color: #1f4e79;
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.page-hero .intro {
  color: #4a5568;
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.project-list {
  margin-bottom: 4em;
}

/* ===== REVIEWS PAGE ===== */
.review-list .card h3 {
  color: #1f4e79;
}

.review-list .card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.15);
}

/* ===== ABOUT PAGE ===== */
.about-body {
  max-width: 720px;
  margin: 3em auto 5em auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #2d3748;
}

.about-body p {
  margin-bottom: 1.5em;
}

.about-body strong {
  color: #1f4e79;
}

.about-body .cta-button {
  display: inline-block;
  margin-top: 1.5em;
  text-decoration: none;
  background: #1f4e79;
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.about-body .cta-button:hover {
  background: #163a5c;
}

/* ===== CONTACT PAGE ===== */
.contact-form {
  max-width: 640px;
  margin: 3em auto 5em auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form label {
  font-weight: 600;
  color: #1f4e79;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1f4e79;
  box-shadow: 0 0 0 2px rgba(31, 78, 121, 0.1);
}

.contact-form button {
  align-self: flex-start;
  background: #1f4e79;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.8em 1.5em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #163a5c;
}

.form-message {
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
