/* ==========================
   EAST COAST ESTATES & STAGING
   Main Stylesheet
========================== */

/* ---------- Reset ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Variables ---------- */

:root {
  --primary-dark: #142845;
  --primary-light: #1a3e63;
  --primary: #0b2c52;
  --secondary: #d4af37;
  --light: #ffffff;
  --dark: #1f2937;
  --gray: #6b7280;
  --light-gray: #f8f9fb;
  --accent: #c9a45c;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.1);

  --radius: 12px;

  --transition: 0.3s ease;
    /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --h1-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
 --first-color: hsl(212, 93%, 22%);
  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
   --font-display: "Playfair Display", Georgia, serif;

}



/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* Announcement Bar */

.top-bar {
  background: #0b2c52;
  color: white;

  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 0;
}

.top-links {
  display: flex;
  gap: 25px;
}

.top-links a {
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header {
  position: sticky;
  top: 0;

  background: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 0.3s;

  z-index: 999;

  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);

  margin-bottom: 20px;
}

.header.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  border-bottom: 1px solid #eee;
}

.header .container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  height: 90px;
}

.quote-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.quote-btn:hover {
  transform: translateY(-3px);
}

.hamburger {
  display: none;
}

.hamburger-lines{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.hamburger span {
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--primary);
}

.hamburger.active {
  border: 2px solid #0459bb;

  background: #ffffff;

  box-shadow: 0 8px 20px rgba(7, 27, 49, 0.15);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hamburger span {
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 60vh;
  background: url("../assets/images/hero.jpg") center center / cover;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 82, 0.65);
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
}

.hero-text h1 {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text h2 {
  color: var(--secondary);
  font-size: 30px;
  margin-bottom: 25px;
  font-weight: 600;
}

.hero-text p {
  font-size: 18px;
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.primary-btn {
  background: var(--secondary);
  color: white;
  padding: 18px 36px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  bottom: 14px;
}

.primary-btn:hover {
  transform: translateY(-4px);
}

.secondary-btn {
  border: 2px solid white;
  color: white;
  padding: 18px 36px;
  border-radius: 8px;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: white;
  color: var(--primary);
}

/* ---------- Hero Card ---------- */

.hero-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-card ul li {
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
  color: #555;
}

.hero-card ul li:last-child {
  border-bottom: none;
}

/* image slider */

.before-after{
    position:relative;
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    border-radius:20px;
    cursor:ew-resize;
    user-select:none;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.before-after img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.before-img{
    position:absolute;
    inset:0;
}

.after-wrapper{
    position:absolute;
    inset:0;
    width:50%;
    overflow:hidden;
}

.after-img{
    position:absolute;
    inset:0;
}

.slider-line{
    position:absolute;
    left:50%;
    top:0;
    bottom:0;
    width:2px;
    transform:translateX(-50%);

    /* Frosted line */
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    box-shadow:
        0 0 15px rgba(255,255,255,.4),
        0 0 20px rgba(0,0,0,.2);
}

.slider-handle{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    width:56px;
    height:56px;
    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    /* Glass effect */
    background:rgba(255,255,255,.25);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    color:#0b63ce62;
    font-size:20px;

    border:1px solid rgba(255,255,255,.6);

    box-shadow:
        0 15px 35px rgba(0,0,0,.25),
        inset 0 1px 1px rgba(255,255,255,.5);

    transition:all .35s ease;
}

.label{
    position:absolute;
    top:20px;
    padding:8px 18px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.before-label{
    left:20px;
    background:rgba(0,0,0,.6);
    color:#fff;
}

.after-label{
    right:20px;
    background:#0b63ce;
    color:#fff;
}