/* ============================================
   JEEHAE HWANG — Personal Real Estate Brand
   Sleek Luxury Aesthetic
   ============================================ */

/* Google Fonts loaded via <link> in HTML for performance */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #F2F1EF;
  --bg-secondary: #D9D2CC;
  --bg-tertiary: #E8E4DF;
  --gold: #4a4a4a;
  --gold-light: #6a6a6a;
  --gold-dark: #333333;
  --gold-gradient: linear-gradient(135deg, #4a4a4a 0%, #6a6a6a 50%, #4a4a4a 100%);
  --text-primary: #4a4a4a;
  --text-secondary: #7a7a7a;
  --text-muted: #aaaaaa;
  --border: #D0C9C2;
  --border-light: #B8B0A8;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-width: 1200px;
  --container-pad: clamp(20px, 5vw, 40px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

/* --- Noise Texture Overlay (applied to body) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 10000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-label--center {
  justify-content: center;
}

.section-label--center::before {
  display: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: background-color 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out),
              backdrop-filter 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background-color: rgba(242, 241, 239, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-img {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}

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

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 10001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}

.nav__hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 74, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero__content {
  position: relative;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

/* Gold accent line in hero */
.hero__accent {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

/* Hero image */
.hero__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero__image-frame {
  position: relative;
  width: 380px;
  height: 480px;
}

.hero__image-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.hero__image-frame:hover::before {
  opacity: 0.6;
}

.hero__headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.5s ease;
}

.hero__image-frame:hover .hero__headshot {
  filter: grayscale(0%);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.btn--gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(74, 74, 74, 0.15);
}

.btn--gold-filled {
  background: var(--gold);
  color: var(--bg-primary);
  border: 1px solid var(--gold);
}

.btn--gold-filled:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px rgba(74, 74, 74, 0.2);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   SERVICES / WHAT I DO
   ============================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
  position: relative;
}

/* Top gold line */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

.services__header {
  text-align: center;
  margin-bottom: 60px;
}

.services__header .section-label {
  justify-content: center;
}

.services__header .section-label::before {
  display: none;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--text-primary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.5s ease, transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   STATS / CREDENTIALS
   ============================================ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 60px;
}

.stat:last-child {
  gap: 0;
}

.stat__text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--gold);
  background: var(--bg-primary);
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  height: 50px;
  width: auto;
}

.footer__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__name-img {
  height: 25px;
  width: auto;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.footer__social {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.footer__legal-img {
  height: 14px;
  width: auto;
}

/* ============================================
   ABOUT PAGE — BIO
   ============================================ */
.page-header {
  padding: calc(80px + var(--section-pad)) 0 var(--section-pad);
  text-align: center;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--text-primary);
  margin-top: 16px;
}

.bio {
  padding: 0 0 var(--section-pad);
}

.bio__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.bio__image-wrapper {
  position: relative;
}

.bio__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.bio__image-frame::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  opacity: 0.3;
  z-index: -1;
}

.bio__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio__content {
  padding-top: 20px;
}

.bio__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.bio__text:first-of-type {
  font-size: 18px;
  color: var(--text-primary);
}

/* ============================================
   APPROACH SECTION
   ============================================ */
.approach {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.approach__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--text-primary);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.approach-card {
  padding: 36px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  transition: border-color 0.4s ease;
}

.approach-card:hover {
  border-color: var(--border-light);
}

.approach-card__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 16px;
}

.approach-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.approach-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-pad) 0;
}

.contact__container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(74, 74, 74, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.contact__alt {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.contact__alt a {
  color: var(--gold);
  transition: opacity 0.3s ease;
}

.contact__alt a:hover {
  opacity: 0.8;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__subtitle,
  .hero__title,
  .hero__description,
  .hero__cta,
  .hero__image-wrapper,
  .hero__accent {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    order: 2;
  }

  .hero__image-wrapper {
    order: 1;
  }

  .hero__image-frame {
    width: 280px;
    height: 350px;
    margin: 0 auto;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .bio__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio__image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

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

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(242, 241, 239, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links--open .nav__link {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero__image-frame {
    width: 220px;
    height: 280px;
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 44px);
  }

  .stats__container {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    gap: 0;
  }

  .stat__divider {
    display: none;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.text-gold { color: var(--gold); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
