/* =====================
   1. Theme Variables
===================== */

:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --text: #0b0f19;
  --muted: #475569;

  --brand: #2563eb;
  --brand1: #2a2f45;
  --border: #e0e0e0;

  --card-hover-border: #2a2f45;
}

/* =====================
   2. Manual Dark Mode
===================== */

[data-theme="dark"] {
  --bg: #0b0f19;
  --panel: #151b2c;
  --text: #ffffff;
  --muted: #9ca3af;

  --border: #2a2f45;

  --card-hover-border: rgba(255, 255, 255, 0.3);
}

/* =====================
   3. System Dark Mode
===================== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b0f19;
    --panel: #151b2c;
    --text: #ffffff;
    --muted: #9ca3af;

    --border: #2a2f45;

    --card-hover-border: rgba(255, 255, 255, 0.3);
  }
}

/* =====================
   4. Reset
===================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================
   5. Base
===================== */

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* =====================
   6. Header / Navigation
===================== */

.site-header {
  background: var(--panel);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
    display: flex; /* Make brand a flex container */
    align-items: center; /* Center vertically */
    gap: 12px; /* Space between logo and text */
}

.brand-logo {
    height: 50px; /* Set the height */
    width: auto; /* Keep aspect ratio */
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-slogan {
  font-size: 0.9rem;
  color: var(--muted);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

/* =====================
   7. Hero
===================== */

.hero {
  min-height: 420px;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;

  border: 2px solid var(--brand1);
  border-radius: 12px;
  padding: 10px;

  background: var(--panel);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.hero--home {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/peacehavenwhite.webp");
}

.hero--services {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/Webdesign.jpg");
}

.hero--pricing {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)),
    url("../images/nightsky.webp");
}

.hero--portfolio {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/Laptopondesk.webp");
}

.hero--contact {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/Communicationhero.webp");
}

.hero--thankyou {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-thankyou.jpg");
}

.hero--404 {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-404.jpg");
}

.hero-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 3rem; /* Adjust size as needed */
    color: white; /* Ensure good contrast */
    margin-bottom: 10px; /* Spacing below the title */
}

.hero-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.5rem; /* Subheading size */
    color: rgba(255, 255, 255, 0.8); /* Slightly lighter for contrast */
    margin-bottom: 20px; /* Spacing below the subtitle */
}

.hero p {
  font-size: 1.2rem;
  max-width: 55ch;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}

/* =====================
   8. Buttons
===================== */

.btn {
  background: var(--brand);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600; /* Make button text bold */
}

/* =====================
   9. Page Layout
===================== */

.page {
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.about-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

/* =====================
   10. Content
===================== */

.comparison {
  padding-left: 20px;
}

.comparison li {
  margin-bottom: 6px;
}

.content-block p {
  max-width: 750px;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text);
}

/* =====================
   11. Cards
===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);

  border-radius: 14px;
  padding: 30px;
  margin-bottom: 20px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background-color 0.3s ease;
}

.card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
}

.card-image-link {
  display: block;
  margin-top: 1.25rem;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* =====================
   13. Forms
===================== */

.contact-form {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 32px 40px;

  background: var(--panel);
  border: 1px solid var(--border);

  border-radius: 18px;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
}

.checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  font-size: 0.95rem;

  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.checkbox input[type="checkbox"] {
  margin-top: 0;
}

/* =====================
   14. Footer
===================== */

.site-footer {
  background: #0f0f0f;
  color: #ddd;
  padding: 30px 20px 10px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column h3, 
.footer-column h4 {
  margin-bottom: 15px;
  color: #fff;
}

.footer-column p {
  color: #aaa;
  font-size: 0.9rem;
}

.footer-column a {
  display: block;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #888;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 20px;
}

/* =====================
   16. Responsive
===================== */

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 220px;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 12px;
    padding: 12px 0;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }
}
