/* HausWorks Multipage Site
   Fast, responsive, modern, with subtle WOW animations
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0c0c0f;
  --bg-alt: #15151b;
  --surface: #191921;
  --surface-soft: #20202a;
  --text: #f7f7f7;
  --muted: #a3a3b3;
  --accent: #f2c365;
  --accent-soft: rgba(242, 195, 101, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #262633 0, #050509 40%, #020208 100%);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: radial-gradient(circle at top left, rgba(242, 195, 101, 0.12), transparent 60%),
              rgba(4, 4, 9, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}

.logo img {
  height: 32px;
}

.main-nav {
  position: relative;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2c365, #f7e0b0);
  transition: width 0.18s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.is-current {
  color: #fff;
}

.nav-links a.is-current::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f2c365, #f7e0b0);
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #f7f7f7;
  border: 1px solid rgba(242, 195, 101, 0.6);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(242, 195, 101, 0.12);
}

.btn-small {
  padding-block: 8px;
  padding-inline: 16px;
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f7f7f7;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 115%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: #050508;
    min-width: 200px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links .btn-small {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Hero - Home */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #f7f7f7;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/ai-hero-modern-living-room.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(242, 195, 101, 0.24), transparent 55%),
    linear-gradient(to bottom right, rgba(1, 1, 4, 0.86), rgba(0, 0, 0, 0.95));
}

.hero-inner {
  position: relative;
  padding-block: 110px 80px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(246, 239, 218, 0.96);
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(2.7rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero-text p {
  margin: 0 0 22px;
  font-size: 1rem;
  color: rgba(244, 241, 231, 0.94);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(247, 233, 190, 0.55);
  background: rgba(5, 5, 10, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  justify-self: end;
  max-width: 340px;
}

.hero-aside-card {
  background: radial-gradient(circle at top, #2a2531, #15141d);
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-aside-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.hero-aside-card p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #d3d3e2;
}

.hero-aside-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #b7b7c7;
}

.hero-aside-row strong {
  color: #fff;
}

.hero-aside-mini {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a7a7bf;
}

.hero-aside-mini span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-aside-mini span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #53f39f;
}

.hero-aside-mini span:last-child::before {
  background: #f2c365;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    justify-self: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-block: 100px 70px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* Home service cards (3 links) */
.home-cards {
  padding-block: 40px 70px;
  background: radial-gradient(circle at top, rgba(242, 195, 101, 0.1), transparent 55%);
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card-link {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #262334, #13131b);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 18px;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-link:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.85);
  border-color: rgba(242, 195, 101, 0.8);
  background: radial-gradient(circle at top left, #343045, #15151f);
}

.card-link-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-link-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.card-link:hover img {
  transform: scale(1.07);
}

.card-link h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card-link p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.card-link-cta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f7f7f7;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-link-cta::after {
  content: "→";
  font-size: 0.9rem;
}

/* Generic sections */
.section {
  padding-block: 70px;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 60%);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-header span.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-body-narrow {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.96rem;
  color: #ddd;
}

.section-body-narrow p + p {
  margin-top: 10px;
}

/* Service grids on inner pages */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .service-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card-service {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-service h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.card-service p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.service-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 26px;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-card,
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-card h2,
.form-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-list a {
  font-weight: 500;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #f7f7f7;
  background: #15151f;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #181823;
  box-shadow: 0 0 0 1px rgba(242, 195, 101, 0.35);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #05050a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #bcbcd1;
  padding-block: 18px;
  font-size: 0.8rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-tagline {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* WOW / reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Page-specific mini hero bars */
.mini-hero {
  padding-block: 70px 46px;
  background: radial-gradient(circle at top, rgba(242, 195, 101, 0.18), transparent 60%);
}

.mini-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr);
  gap: 22px;
  align-items: center;
}

@media (max-width: 860px) {
  .mini-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.badge-soft::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #53f39f;
}
