/*
IndependentLife.ie Landing Page
Version: 0.1.10
Date: 2026-06-02
Change log: softened the mobile hero overlay so the countryside image remains visible while keeping the title over the hero; moved footer branding and Avant Garde Web credit below the House Rules and version columns.
Brand palette: Champagne Gold, Warm Cream, Soft Sage, Stone Taupe, Deep Charcoal
*/
:root {
  --gold: #C9B27A;
  --cream: #F7F4ED;
  --sage: #A7B89A;
  --taupe: #B7B1A3;
  --charcoal: #2C2C2C;
  --ink: #202020;
  --white: #fffdf8;
  --line: rgba(201, 178, 122, 0.38);
  --shadow: 0 18px 52px rgba(44, 44, 44, 0.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 72%, #eee8dc 100%);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: .68rem clamp(1.2rem, 4vw, 4rem);
  min-height: 82px;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: min(168px, 34vw); height: auto; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { color: #92733a; }

.hero {
  position: relative;
  min-height: clamp(460px, 50vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--cream);
  background-image: url("assets/hero-countryside.jpg");
  background-size: cover;
  background-position: center 72%;
  border-bottom: 1px solid var(--line);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(247,244,237,.88) 0%,
      rgba(247,244,237,.78) 30%,
      rgba(247,244,237,.42) 58%,
      rgba(247,244,237,.14) 100%),
    linear-gradient(180deg,
      rgba(247,244,237,.22) 0%,
      rgba(247,244,237,.10) 42%,
      rgba(247,244,237,.30) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(3.2rem, 5.2vw, 5.4rem) 0;
}
.eyebrow, .section-kicker {
  color: #98773c;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
}
.eyebrow { margin: 0 0 1.1rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.04; font-weight: 500; margin: 0; }
h1 { font-size: clamp(3.05rem, 4.8vw, 4.85rem); max-width: 16.5ch; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.3rem); }
h3 { font-size: 1.55rem; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.22rem); max-width: 610px; color: #4f4a42; margin: 1.15rem 0 1.55rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(44,44,44,.12); }
.button.primary { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.button.secondary { background: rgba(255,253,248,.58); color: var(--charcoal); backdrop-filter: blur(4px); }

.intro, .homes, .enquiry { padding: clamp(3rem, 5.8vw, 5.6rem) clamp(1.2rem, 5vw, 6rem); }
.intro > p:not(.section-kicker) { font-size: 1.08rem; max-width: 950px; color: #4f4a42; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .95rem; margin-top: 1.7rem; }
.value-grid article, .listing-card, .contact-form {
  background: rgba(255,253,248,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(44,44,44,.055);
}
.value-grid article { padding: 1.25rem; }
.value-grid span { color: var(--gold); letter-spacing: .12em; font-weight: 700; }
.value-grid p { color: #5f5a50; margin-bottom: 0; }

.homes { background: rgba(255,255,255,.28); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 960px; margin-bottom: 1.7rem; }
.section-head p:last-child { color: #5f5a50; font-size: 1.02rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.listing-card { overflow: hidden; }
.listing-image {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(247,244,237,.92), rgba(183,177,163,.45));
}
.listing-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,178,122,.28);
  border-radius: 14px;
}
.listing-image::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(167,184,154,.28);
}
.image-one { background: linear-gradient(135deg, rgba(167,184,154,.42), rgba(201,178,122,.22)); }
.image-two { background: linear-gradient(135deg, rgba(183,177,163,.38), rgba(247,244,237,.86)); }
.image-three { background: linear-gradient(135deg, rgba(201,178,122,.28), rgba(167,184,154,.24)); }
.listing-body { padding: 1.25rem; }
.tag { color: #98773c; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700; margin: 0 0 .45rem; }
.listing-body p { color: #5f5a50; }
.listing-body a { color: #7d602e; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.enquiry { display: grid; grid-template-columns: minmax(0, .82fr) minmax(300px, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; border-top: 1px solid var(--line); }
.enquiry-copy .note { border-left: 3px solid var(--gold); padding-left: 1rem; color: #5f5a50; }
.contact-form { display: grid; gap: .85rem; padding: clamp(1.2rem, 3vw, 2rem); }
label { display: grid; gap: .32rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #655f54; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(44,44,44,.16);
  border-radius: 12px;
  padding: .88rem 1rem;
  background: rgba(255,253,248,.88);
  color: var(--charcoal);
  font: 400 .98rem/1.4 var(--sans);
}
textarea { resize: vertical; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-small { font-size: .8rem; color: #6a645b; margin: 0; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
  gap: 2rem 4rem;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 5vw, 6rem);
  background: #282828;
  color: var(--cream);
}
.footer-rules { grid-column: 1; }
.footer-meta { grid-column: 2; }
.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.55rem;
  margin-top: .35rem;
  border-top: 1px solid rgba(201,178,122,.24);
}
.footer-logo-link {
  display: inline-block;
  width: min(215px, 44vw);
  text-decoration: none;
  line-height: 0;
}
.footer-logo {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand-copy {
  text-align: right;
}
.footer-brand p, .footer-meta p, .footer-rules li { color: rgba(247,244,237,.78); }
.footer-brand-copy p { margin: 0 0 .35rem; }
.footer-credit {
  font-size: .86rem;
}
.footer-credit a, .footer-meta a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-rules h2 { font-size: 1.45rem; color: var(--gold); margin-bottom: .6rem; }
.footer-rules ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 980px) {
  .enquiry { grid-template-columns: 1fr; }
  .value-grid, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .footer-rules, .footer-meta, .footer-brand { grid-column: 1; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-brand-copy { text-align: left; }
}
@media (max-width: 680px) {
  .site-header {
    align-items: center;
    gap: .7rem;
    flex-direction: column;
    position: relative;
    min-height: auto;
    padding: .72rem 1rem .9rem;
  }
  .brand img { width: 132px; }
  .nav { width: 100%; justify-content: space-between; font-size: .66rem; gap: .5rem; }
  .hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(455px, 72vh, 610px);
    background-image: url("assets/hero-countryside-mobile.jpg");
    background-size: cover;
    background-position: center 56%;
    background-repeat: no-repeat;
  }
  .hero::before { display: none; }
  .hero-overlay {
    display: block;
    background:
      linear-gradient(180deg,
        rgba(247,244,237,.00) 0%,
        rgba(247,244,237,.05) 28%,
        rgba(247,244,237,.20) 55%,
        rgba(247,244,237,.58) 82%,
        rgba(247,244,237,.82) 100%),
      linear-gradient(90deg,
        rgba(247,244,237,.44) 0%,
        rgba(247,244,237,.18) 58%,
        rgba(247,244,237,.04) 100%);
  }
  .hero-inner {
    width: calc(100% - 32px);
    padding: 2.15rem 0 2rem;
  }
  .eyebrow, .section-kicker { font-size: .7rem; letter-spacing: .18em; }
  .eyebrow { margin-bottom: .85rem; }
  h1 {
    font-size: clamp(2.18rem, 8.7vw, 3.05rem);
    line-height: 1.03;
    max-width: 11.5ch;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .lead {
    font-size: .98rem;
    line-height: 1.62;
    max-width: 100%;
    margin: .85rem 0 1.15rem;
    color: #4a463e;
  }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .button { width: 100%; min-height: 2.8rem; padding: .65rem .9rem; font-size: .66rem; letter-spacing: .12em; }
  .value-grid, .listing-grid { grid-template-columns: 1fr; }
  .listing-image { height: 120px; }
  .intro, .homes, .enquiry { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .site-footer { padding-top: 2.2rem; padding-bottom: 2.4rem; gap: 1.35rem; }
  .footer-logo-link { width: min(190px, 62vw); }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .hero {
    min-height: clamp(445px, 50vh, 550px);
    background-position: center 72%;
  }
  h1 {
    max-width: 16ch;
    font-size: clamp(3rem, 5.4vw, 4.6rem);
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: clamp(430px, 70vh, 555px);
    background-position: center 58%;
  }
  .hero-inner { padding-top: 1.8rem; padding-bottom: 1.85rem; }
  h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.75rem);
    max-width: 11.5ch;
  }
  .hero-actions { grid-template-columns: 1fr; }
}
