:root {
  color-scheme: light;
  font-size: clamp(15px, 1.1vw, 17px);
  --fg: #23303f;
  --muted: #556272;
  --light: #f4f8fb;
  --accent: #5ec2b3;
  --accent-dark: #259487;
  --earth: #d7a86e;
}

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  min-height: 100vh;
}

/* Original body background for hub page, now unused for index */
body.hub-page {
  background: radial-gradient(140% 120% at 80% 0%, rgba(94, 194, 179, 0.18), rgba(244, 248, 251, 1));
  display: grid;
  place-items: center;
}

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

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

.hub {
  width: min(1120px, calc(100% - 3.5rem));
  margin: 4vh auto;
  display: grid;
  gap: 2.8rem;
}

.hub__header {
  text-align: center;
  display: grid;
  gap: 1.2rem;
}

.hub__header img {
  width: 180px;
  margin: 0 auto;
}

.hub__header p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.hub__card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  padding: 2.6rem;
  box-shadow: 0 24px 48px rgba(27, 61, 69, 0.14);
  display: grid;
  gap: 1.3rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub__card > * {
  position: relative;
  z-index: 1;
}

.hub__card::after {
  content: "";
  position: absolute;
  inset: auto -25% -35%;
  height: 70%;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hub__card--bath::after {
  background: radial-gradient(60% 60% at 50% 40%, rgba(94, 194, 179, 0.25), rgba(253, 245, 236, 0));
}

.hub__card--hvac::after {
  background: radial-gradient(60% 60% at 50% 40%, rgba(35, 48, 63, 0.14), rgba(216, 230, 242, 0));
}

.hub__card:hover,
.hub__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(27, 61, 69, 0.18);
}

.hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(94, 194, 179, 0.12);
  color: var(--accent-dark);
}

.hub__card--hvac .hub__badge {
  background: rgba(35, 48, 63, 0.12);
  color: #23303f;
}

.hub__card h1,
.hub__card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
}

.hub__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hub__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: rgba(35, 48, 63, 0.68);
}

.hub__card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.6rem;
}

.hub__card--hvac ul li::before {
  color: var(--earth);
}

.hub__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  background: linear-gradient(120deg, rgba(94, 194, 179, 0.15), rgba(94, 194, 179, 0.35));
  color: var(--accent-dark);
  box-shadow: 0 18px 32px rgba(94, 194, 179, 0.2);
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.hub__cta:hover,
.hub__cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(94, 194, 179, 0.4), rgba(94, 194, 179, 0.6));
  color: #124a43;
  box-shadow: 0 22px 36px rgba(94, 194, 179, 0.28);
}

.hub__cta--dark {
  background: linear-gradient(120deg, rgba(215, 168, 110, 0.18), rgba(35, 48, 63, 0.72));
  color: white;
  box-shadow: 0 20px 36px rgba(35, 48, 63, 0.25);
}

.hub__cta--dark:hover,
.hub__cta--dark:focus-visible {
  background: linear-gradient(120deg, rgba(215, 168, 110, 0.25), rgba(35, 48, 63, 0.85));
}

.hub__footer {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: rgba(35, 48, 63, 0.75);
}

.hub__footer a {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hub-page body {
    display: block;
  }

  .hub {
    margin: 3rem auto;
  }

  .hub__grid {
    grid-template-columns: 1fr;
  }

  .hub__footer {
    flex-direction: column;
    align-items: center;
  }
}

/*
 * Hero Split Section
 * --------------------------------------------------
 */
body {
  background: #f4f8fb;
}

.hero-split {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-split__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.hero-split__logo {
  width: 160px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero-split__tagline {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  color: var(--muted);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.hero-split__tagline span {
  display: block;
  font-weight: 700;
  color: var(--fg);
}

.hero-split__main {
  display: flex;
  flex-grow: 1;
  width: 100%;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: var(--fg);
}

.panel:hover, .panel:focus-visible {
  flex: 1.1;
}

.panel__content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel:hover .panel__content, .panel:focus-visible .panel__content {
    transform: scale(1.05);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.panel:hover::before, .panel:focus-visible::before {
    opacity: 0.1;
}

.panel--bath {
  background-color: #e9f3f1;
}

.panel--bath::before {
  background-image: url('../images/gallery-marble.svg');
}

.panel--tech {
  background-color: #f4f8fb;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.panel--tech::before {
  background-image: url('../images/tech-hydronics.svg');
  background-position: 20% 80%;
}

.panel__overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.panel--tech .panel__overline {
  color: var(--earth);
}

.panel__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 20px rgba(255,255,255,0.7);
}

.panel__description {
  color: var(--muted);
  line-height: 1.6;
  max-width: 380px;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(255,255,255,0.5);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  background-color: var(--accent);
  color: white;
  box-shadow: 0 10px 25px -10px var(--accent-dark);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px var(--accent-dark);
}

.cta-button--dark {
  background-color: var(--fg);
  box-shadow: 0 10px 25px -15px var(--fg);
}

.cta-button--dark:hover {
  box-shadow: 0 15px 30px -15px var(--fg);
}


@media (max-width: 820px) {
  .hero-split__main {
    flex-direction: column;
  }
  .panel {
    min-height: 50vh;
    flex-grow: 1 !important; /* Disable hover effect on mobile */
  }
   .panel:hover, .panel:focus-visible {
    flex: 1;
   }
   .panel:hover .panel__content, .panel:focus-visible .panel__content {
    transform: none;
  }
  .panel--tech {
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .hero-split__header {
    position: relative; /* Make it part of the flow */
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
  }
  .hero-split__tagline {
    text-align: center;
  }
}

/*
 * Content Section
 * --------------------------------------------------
 */
.content-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.container {
  width: min(1120px, calc(100% - 3.5rem));
  margin: 0 auto;
}

.studio-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.studio-section__image {
  text-align: center;
}

.studio-section__image img {
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(35, 48, 63, 0.2);
  max-width: 350px;
  margin: 0 auto;
}

.studio-section__content .overline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.studio-section__content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.studio-section__content > p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 55ch;
  font-size: 1.05rem;
}

.expertise {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.8rem;
}

.expertise__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.expertise__item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.cta-link {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-link:hover {
    color: var(--fg);
}

@media (max-width: 900px) {
  .content-section {
    padding: 3.5rem 0;
  }
  .studio-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.promo-section {
  background: var(--light);
}

.promo-section .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
}

.promo-section__content .overline {
  color: var(--earth);
}

.promo-section__content .cta-link {
  color: var(--earth);
}

.promo-section__image {
  text-align: center;
}

.promo-section__image img {
  max-width: 280px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .promo-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .promo-section__image {
    order: -1; /* Move image to top on mobile */
  }
}
