/* ============================================================
   LIP Homes — style.css
   Variables · Reset · Typography · Layout · Header · Hero · Footer
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand colours */
  --color-primary:       #2d7a4f;
  --color-primary-dark:  #1f5a39;
  --color-primary-light: #e8f5ee;
  --color-accent:        #e6930a;   /* amber — Let Agreed badge */
  --color-white:         #ffffff;
  --color-off-white:     #f7f9f7;
  --color-text:          #1a1a2e;
  --color-text-muted:    #6b7280;
  --color-border:        #e5e7eb;
  --color-badge-off-market-bg: #6b7280;
  --color-badge-off-market-text: #ffffff;
  --color-badge-let-bg:  #fef3c7;
  --color-badge-let-text: #92400e;
  --color-badge-avail-bg: var(--color-primary-light);
  --color-badge-avail-text: var(--color-primary-dark);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.75rem;
  --font-size-4xl:  3.5rem;
  --line-height:    1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:      1200px;
  --header-height:  70px;
  --card-radius:    14px;
  --radius-sm:      6px;
  --radius-md:      10px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 28px rgba(0,0,0,0.13);
  --shadow-modal:0 20px 60px rgba(0,0,0,0.25);

  /* Transitions */
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure [hidden] always wins over any display property in component CSS */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section {
  padding-block: var(--space-20);
}

.section--alt {
  background-color: var(--color-off-white);
}

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.section__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(45,122,79,0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.75);
}
.btn--outline:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover {
  background-color: var(--color-primary-light);
}

.btn--sm  { font-size: var(--font-size-sm); padding: 0.45em 1.1em; }
.btn--lg  { font-size: var(--font-size-md); padding: 0.75em 1.9em; }
.btn--full { width: 100%; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.3px;
  line-height: 1;
}

/* Nav */
.header__nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.header__cta {
  margin-left: var(--space-4);
  flex-shrink: 0;
}

/* Hamburger (mobile — hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: #1a2e22;
  color: var(--color-white);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  padding-block: var(--space-16);
}

.hero__content {
  max-width: 560px;
}

.hero__photo {
  display: flex;
  justify-content: center;
}

.hero__photo-img {
  width: 100%;
  max-width: 1024px;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
}

.hero__heading {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.hero__subheading {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.hero__scroll-hint:hover { color: rgba(255,255,255,0.9); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── About Section ──────────────────────────────────────────── */
.about-section { background-color: var(--color-off-white); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about__text .section__title { margin-bottom: var(--space-5); }

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-md);
}

.about__trust-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.trust-point {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.trust-point__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.trust-point__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.trust-point__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Contact Section ────────────────────────────────────────── */
.contact-section { background-color: var(--color-white); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__intro .section__title { margin-bottom: var(--space-5); }

.contact__intro p {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.contact__details { margin-top: var(--space-4); }

.contact__note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: #111c15;
  color: rgba(255,255,255,0.7);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-10);
}

.footer__brand .header__logo {
  margin-bottom: var(--space-3);
}

.footer__brand .logo__mark { color: #5cb87a; }
.footer__brand .logo__text { color: rgba(255,255,255,0.85); }

.footer__tagline {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.45);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__links a:hover { color: rgba(255,255,255,0.95); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-4);
}

.footer__bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.35);
  text-align: center;
}
