/* =====================
   Theme variables
===================== */

:root {
  --bg: #ffffff;
  --panel: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
}

/* =====================
   light/dark switcher
===================== */

[data-theme="dark"] {
  --bg: #0b0f19;
  --panel: #151b2c;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

/* Base (light mode default) */
:root {
  --bg-color: #ffffff;
  --text-color: #0b0f19;
  --card-bg: #f5f5f5;
  --border-color: #e0e0e0;
}

/* Dark mode (automatic, system-based) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --text-color: #ffffff;
    --card-bg: #141824;
    --border-color: #2a2f45;
  }
}

/* =====================
   Base
===================== */

body {
  margin: 0;
  font-family: system-ui, sans-serif;

  background-color: var(--bg-color);
  color: var(--text-color);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.site-header {
  background: var(--panel);
}

@supports not (color-scheme: dark) {
  body {
    background-color: #0b0f19;
    color: #ffffff;
  }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
}

.brand-logo {
  display: block;
  max-height: 42px;
  width: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-slogan {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 10px;
  background: white;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
}

.hero {
  padding: 120px 0;
  margin-bottom: 60px;
  background-size: cover;
  background-position: center;
}

.hero h1,
.hero p {
  color: white;
}

.hero--home {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-home.jpg");
}
.hero--services {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-services.jpg");
}
.hero--pricing {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-pricing.jpg");
}
.hero--portfolio {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-portfolio.jpg");
}
.hero--contact {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../images/hero-contact.jpg");
}
.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");
}

.btn {
  background: var(--brand);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Image now matches text height perfectly */
.about-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 220px;
  }
}

.page {
  padding-top: 40px;
  padding-bottom: 40px;
}


/* =====================
   Content box for UL list
===================== */

.comparison {
  padding-left: 20px;
}

.comparison li {
  margin-bottom: 6px;
}

.card {
  background: var(--panel);
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 20px;

  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

/* =====================
   Content text block
===================== */

.content-block p {
  max-width: 750px;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text);
}

/* =====================
   Card grid
===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 32px 40px;
  background: var(--panel);
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.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-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.checkbox input[type="checkbox"] {
  margin-top: 0;
}

.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

.toggle {
  cursor: pointer;
}

@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 12px;
    padding: 12px 0;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.95rem;
  }
}

.card-image-link {
  display: block;
  margin-top: 1.25rem;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}