/* =========================================================
   Artistic Homes Ltd. — static site stylesheet
   Tokens mirrored from the original Lovable build.
   ========================================================= */

:root {
  --background: 30 15% 98%;
  --foreground: 220 15% 15%;
  --card: 30 20% 99%;
  --muted: 30 15% 94%;
  --muted-foreground: 220 10% 45%;
  --primary: 220 12% 22%;
  --primary-foreground: 30 20% 98%;
  --secondary: 35 25% 92%;
  --accent: 25 75% 47%;
  --accent-foreground: 30 20% 98%;
  --accent-hover: 25 80% 42%;
  --border: 30 20% 88%;
  --ring: 25 75% 47%;

  --radius: 0.5rem;
  --shadow-soft: 0 4px 20px -4px hsl(220 15% 15% / 0.08);
  --shadow-elevated: 0 12px 40px -8px hsl(220 15% 15% / 0.12);
  --hero-gradient: linear-gradient(135deg, hsl(220 12% 22% / 0.92) 0%, hsl(220 15% 18% / 0.85) 100%);
  --accent-gradient: linear-gradient(135deg, hsl(25 75% 47%) 0%, hsl(35 80% 55%) 100%);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: hsl(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: hsl(var(--primary));
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: hsl(var(--primary)); color: #fff;
  padding: 0.5rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.btn-accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-accent:hover { background: hsl(var(--accent-hover)); color: hsl(var(--accent-foreground)); }

.btn-outline { background: transparent; color: hsl(var(--primary)); border-color: hsl(var(--border)); }
.btn-outline:hover { border-color: hsl(var(--primary)); }

.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 600;
  color: hsl(var(--accent));
  margin: 0 0 0.8rem;
}
.eyebrow.centered { text-align: center; }
.eyebrow.on-dark { color: hsl(25 80% 62%); }

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: hsl(var(--background) / 0.85);
  border-bottom: 1px solid hsl(var(--border));
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { background: hsl(var(--background) / 0.97); box-shadow: var(--shadow-soft); }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { flex: 0 0 auto; }
.brand img { height: 48px; width: auto; }

.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 1.8rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  color: hsl(var(--primary)); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.25rem; position: relative;
}
.primary-nav a:hover { color: hsl(var(--accent)); text-decoration: none; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: hsl(var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-link { display: inline-flex; align-items: center; gap: 0.45rem; color: hsl(var(--primary)); font-weight: 600; }
.phone-link:hover { color: hsl(var(--accent)); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border-radius: var(--radius);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: hsl(var(--primary)); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-soft);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 1rem var(--gutter); margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: hsl(var(--primary)); font-weight: 500; border-bottom: 1px solid hsl(var(--border)); }
.mobile-nav li:last-child a { border: 0; padding-top: 0.75rem; }
.mobile-nav a.btn { border: 1px solid transparent; color: hsl(var(--accent-foreground)); }

@media (max-width: 960px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-gradient); }

.hero-inner { width: 100%; }
.hero-copy { max-width: 48rem; }

.hero h1 {
  color: hsl(var(--primary-foreground));
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: hsl(var(--primary-foreground) / 0.92);
  max-width: 44rem; margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.eyebrow.on-hero { color: hsl(25 85% 62%); }

.btn-ghost-light {
  background: transparent; color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary-foreground) / 0.4);
}
.btn-ghost-light:hover {
  background: hsl(var(--primary-foreground) / 0.12);
  border-color: hsl(var(--primary-foreground) / 0.7);
  color: hsl(var(--primary-foreground));
}

.trust-strip {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  align-items: start;
}
.trust-strip li { line-height: 1.3; }
.trust-strip strong {
  display: block; color: hsl(var(--primary-foreground));
  font-size: 0.95rem; font-weight: 700;
}
.trust-strip span {
  font-size: 0.78rem; color: hsl(var(--primary-foreground) / 0.75);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.trust-strip a { color: inherit; display: block; }
.trust-strip a:hover { text-decoration: none; }
.trust-strip a:hover strong { color: hsl(var(--accent)); }
.trust-logo {
  display: block;
  height: 56px; width: auto; max-width: 180px;
  margin-top: 0.6rem;
  object-fit: contain;
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 1rem;
}
.section-lead {
  text-align: center; max-width: 44rem; margin: 0 auto 3rem;
  color: hsl(var(--muted-foreground)); font-size: 1.05rem;
}
.on-dark, .on-dark * { color: hsl(var(--primary-foreground)); }
.process .section-lead { color: hsl(30 15% 86%); }

/* ---------- services ---------- */
.services { background: hsl(var(--background)); }
.service-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: hsl(var(--accent) / 0.4); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: calc(var(--radius) * 1.25);
  background: hsl(var(--accent) / 0.12); color: hsl(var(--accent));
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 0.98rem; }

/* ---------- portfolio ---------- */
.portfolio { background: hsl(var(--secondary) / 0.45); }
.filter-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-tab {
  background: hsl(var(--card)); color: hsl(var(--primary));
  border: 1px solid hsl(var(--border));
  padding: 0.55rem 1.15rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-tab:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
.filter-tab.is-active { background: hsl(var(--accent)); color: #fff; border-color: hsl(var(--accent)); }

.portfolio-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.portfolio-card {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden; background: hsl(var(--card));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.portfolio-card[hidden] { display: none; }
.portfolio-card figure { margin: 0; }
.portfolio-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-card figcaption { padding: 1.25rem; }
.portfolio-card .tag {
  display: inline-block; background: hsl(var(--accent) / 0.14); color: hsl(var(--accent));
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.portfolio-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.portfolio-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 0; }

.center-cta { text-align: center; margin-top: 3rem; }

/* ---------- process ---------- */
.process { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.process .section-title, .process .eyebrow.on-dark { color: hsl(var(--primary-foreground)); }
.process-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.process-steps li {
  background: hsl(220 15% 28% / 0.55);
  border: 1px solid hsl(220 15% 35%);
  border-radius: calc(var(--radius) * 1.25);
  padding: 1.75rem;
}
.process-steps h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-steps p { color: hsl(30 15% 82%); margin: 0; font-size: 0.95rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  margin-bottom: 1rem; letter-spacing: 0.05em;
}

/* ---------- testimonials ---------- */
.testimonials { background: hsl(var(--background)); }
.testimonial-grid {
  list-style: none; padding: 0; margin: 0 0 3rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.stars { color: hsl(25 90% 55%); font-size: 1.1rem; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.testimonial-card blockquote {
  margin: 0 0 1.25rem; padding: 0;
  color: hsl(var(--foreground));
  font-size: 1rem; line-height: 1.65;
  font-style: italic;
}
.testimonial-card footer { margin-top: auto; }
.testimonial-card footer strong { display: block; font-weight: 700; color: hsl(var(--primary)); }
.testimonial-card footer span { font-size: 0.82rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.08em; }

.trust-bar {
  list-style: none; padding: 2.5rem 0 0; margin: 0;
  border-top: 1px solid hsl(var(--border));
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trust-bar li { text-align: center; padding: 0.5rem; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: hsl(var(--accent) / 0.12); color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}
.trust-bar h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.trust-bar p { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* ---------- contact ---------- */
.contact { background: hsl(var(--secondary) / 0.45); }
.contact-layout {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1fr 1.25fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.25);
  padding: 1.1rem 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.contact-card:hover { transform: translateY(-2px); border-color: hsl(var(--accent) / 0.5); text-decoration: none; }
.ci-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: hsl(var(--accent) / 0.12); color: hsl(var(--accent)); flex-shrink: 0;
}
.contact-card h3 { margin: 0; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); }
.contact-card p { margin: 0.1rem 0 0; font-weight: 600; color: hsl(var(--primary)); }

.quote-form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}
.quote-form h3 { margin: 0 0 0.35rem; font-size: 1.4rem; }
.form-lead { margin: 0 0 1.5rem; color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

.quote-form input,
.quote-form textarea {
  display: block; width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  font: inherit; color: inherit;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-form textarea { resize: vertical; min-height: 8rem; }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.18);
}
.quote-form input[aria-invalid="true"],
.quote-form textarea[aria-invalid="true"] {
  border-color: hsl(0 70% 55%);
  box-shadow: 0 0 0 3px hsl(0 70% 55% / 0.15);
}

.hp-field {
  position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}

.form-status { min-height: 1.2em; margin: 0.75rem 0 0; font-size: 0.95rem; }
.form-status.is-success { color: hsl(140 55% 32%); }
.form-status.is-error { color: hsl(0 65% 45%); }

/* ---------- footer ---------- */
.site-footer { background: hsl(var(--primary)); color: hsl(30 15% 82%); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-top: 3.5rem; padding-bottom: 2rem;
}
.footer-about img {
  filter: brightness(0) invert(1);
  height: 56px; width: auto; margin-bottom: 1rem;
}
.footer-about p { color: hsl(30 15% 78%); font-size: 0.95rem; max-width: 26rem; }
.footer-col h4 {
  color: #fff; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: hsl(30 15% 78%); font-size: 0.95rem; }
.footer-col a:hover { color: hsl(var(--accent)); text-decoration: none; }

.footer-meta {
  border-top: 1px solid hsl(220 15% 32%);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}
.footer-meta .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  color: hsl(30 15% 72%);
}
.footer-meta p { margin: 0; }
