/* =============================================
   TIMELESS ESTATE MEDIA — style.css
   Luxury real estate photography brand
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #faf9f7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
  --cream: #faf9f7;
  --warm-white: #f5f3ef;
  --dark: #111110;
  --charcoal: #2a2a28;
  --mid: #6b6b65;
  --gold: #b8975a;
  --gold-light: #d4b07a;
  --text: #1a1a1a;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
}
em { font-style: italic; color: var(--gold); }
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--dark);
}
.section-title.light { color: var(--cream); }
.body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.25rem;
}

/* ---- LAYOUT HELPERS ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-dark { background: var(--dark); color: var(--cream); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.btn-dark {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-light {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}
.btn-light:hover { background: white; }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--cream); background: rgba(255,255,255,0.08); }
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { border-color: var(--cream); }
.btn-full { width: 100%; text-align: center; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,249,247,0.0);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(250,249,247,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color var(--transition);
}
.nav.scrolled .nav-logo { color: var(--dark); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: rgba(250,249,247,1); }
.nav.scrolled .nav-links a { color: var(--mid); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--dark); }
.nav.scrolled .nav-links a::after { background: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,17,16,0.7) 0%,
    rgba(17,17,16,0.3) 60%,
    rgba(17,17,16,0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(250,249,247,0.75);
  max-width: 440px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,249,247,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.6s ease both;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250,249,247,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ---- INTRO STRIP ---- */
.intro-strip {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.intro-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 3rem;
}
.strip-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--gold);
}
.strip-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.65);
}
.strip-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.1);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--charcoal);
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about-img-frame:hover img { transform: scale(1.03); }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--dark);
  color: var(--cream);
  padding: 1.5rem;
  text-align: center;
  min-width: 120px;
}
.badge-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.badge-text {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: rgba(250,249,247,0.6);
}
.about-text { padding-left: 1rem; }

/* ---- PACKAGES ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.08);
}
.pkg-card {
  background: rgba(255,255,255,0.04);
  padding: 3rem 2rem;
  position: relative;
  transition: background var(--transition);
}
.pkg-card:hover { background: rgba(255,255,255,0.07); }
.pkg-card.pkg-featured {
  background: rgba(184,151,90,0.12);
  border-top: 2px solid var(--gold);
}
.pkg-badge-top {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
}
.pkg-icon { font-size: 2rem; margin-bottom: 1.25rem; }
.pkg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.pkg-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.pkg-list {
  margin-bottom: 2rem;
}
.pkg-list li {
  font-size: 0.82rem;
  color: rgba(250,249,247,0.7);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}
.pkg-note {
  text-align: center;
  padding: 2rem 0 0;
  font-size: 0.82rem;
  color: rgba(250,249,247,0.45);
  max-width: 600px;
  margin: 0 auto;
}
.pkg-note a { color: var(--gold-light); text-decoration: underline; }

/* ---- GALLERY PREVIEW ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
}
.gal-item {
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4/3;
}
.gal-item.gal-large {
  grid-row: span 2;
  aspect-ratio: unset;
}
.gal-item.gal-wide {
  grid-column: span 2;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-placeholder {
  background: var(--charcoal) !important;
  position: relative;
}
.gal-placeholder::after {
  content: 'Your Photo Here';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--gold);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.cta-banner-inner p {
  font-size: 0.85rem;
  color: rgba(17,17,16,0.7);
  margin-bottom: 2rem;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  text-align: center;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; }
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  font-weight: 300;
}

/* ---- SERVICES LIST ---- */
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  align-items: start;
}
.service-row:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.service-icon-wrap { text-align: center; padding-top: 0.5rem; }
.service-icon { font-size: 2rem; }
.service-detail h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.service-detail p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #555;
}

/* ---- GALLERY PAGE ---- */
.gallery-section { background: var(--warm-white); }
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--mid);
  transition: var(--transition);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
.gallery-masonry {
  columns: 3;
  column-gap: 0.75rem;
}
.gallery-masonry .gal-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  aspect-ratio: unset;
  cursor: pointer;
}
.gallery-masonry .gal-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}
.gallery-masonry .gal-item:hover img { opacity: 0.88; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 90vw; max-height: 90vh; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1.5rem; right: 2rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-details { margin-top: 2.5rem; }
.contact-detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.detail-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-form-wrap {
  background: var(--dark);
  padding: 3rem;
}
.contact-form .form-group {
  margin-bottom: 1.25rem;
}
.contact-form label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.5);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select option { background: var(--dark); }
.contact-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); }

/* ---- THANK YOU ---- */
.thankyou-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.thankyou-inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.thankyou-inner p { color: rgba(250,249,247,0.65); max-width: 400px; }
.thankyou-check {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ---- FOOTER ---- */
.footer { background: var(--charcoal); padding: 4rem 0 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: rgba(250,249,247,0.4);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-social a {
  display: inline-flex;
  color: rgba(250,249,247,0.4);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold); }
.footer-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links ul li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(250,249,247,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-contact p {
  font-size: 0.82rem;
  color: rgba(250,249,247,0.5);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(250,249,247,0.3);
}
.footer-bottom a:hover { color: rgba(250,249,247,0.6); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-frame { aspect-ratio: 16/9; }
  .about-badge { right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: rgba(250,249,247,0.75) !important;
    padding: 0.85rem 2rem;
    display: block;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .packages-grid { grid-template-columns: 1fr; gap: 1px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gal-item.gal-large { grid-row: auto; }
  .gal-item.gal-wide { grid-column: auto; }
  .gallery-masonry { columns: 2; }
  .intro-strip-inner { flex-direction: column; gap: 0.5rem; }
  .strip-divider { width: 30px; height: 1px; }
  .strip-item { padding: 0.5rem 1rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .contact-form-wrap { padding: 2rem; }
  .service-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}
