/* =============================================
   HUON PROPERTY GROUP — Global Styles
   Brand: Pine Green #023f3e · Ice Grey #b9c3cb · Peach Beige #ebd5c6
   ============================================= */

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

:root {
  --pine:       #023f3e;
  --pine-mid:   #035553;
  --ice:        #b9c3cb;
  --peach:      #ebd5c6;
  --white:      #ffffff;
  --off:        #f7f5f2;
  --text:       #1c1c1a;
  --muted:      #7a7870;
  --border:     #e6e3de;
  --radius:     4px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ---- Typography ---- */

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-heading {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--pine);
  letter-spacing: -0.02em;
}

.section-heading em {
  font-style: italic;
  font-weight: 300;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: opacity var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  position: relative;
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pine);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--off);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pine {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
  filter: contrast(1.05) saturate(0.8);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 800px;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 420px;
}

.btn-primary {
  display: inline-block;
  background: var(--pine);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--pine);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: transparent;
  color: var(--pine);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--muted) 0%, transparent 100%);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%, 100% { opacity: 0.4; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 120px 80px;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--pine);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ============================================
   PROJECTS
   ============================================ */

.projects {
  background: var(--off);
  padding-bottom: 0;
}

.projects-header {
  padding: 100px 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 70vh;
  border-bottom: 1px solid var(--border);
}

.project-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.project-reverse .project-media {
  order: 2;
}

.project-reverse .project-content {
  order: 1;
}

.project-media {
  overflow: hidden;
  background: var(--pine);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .project-media img {
  transform: scale(1.04);
}

.project-content {
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.project-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.tag-active {
  background: rgba(2, 63, 62, 0.1);
  color: var(--pine);
}

.tag-complete {
  background: rgba(185, 195, 203, 0.25);
  color: var(--muted);
}

.tag-soon {
  background: rgba(235, 213, 198, 0.5);
  color: #8c6a55;
}

.project-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
}

.project-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.project-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--pine);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.project-location {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 20px;
}

.project-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 24px;
}

.project-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 300;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  flex-shrink: 0;
}

.status-dot.active {
  background: var(--pine);
  box-shadow: 0 0 0 3px rgba(2, 63, 62, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.soon {
  background: #c4a882;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(2, 63, 62, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(2, 63, 62, 0.08); }
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  border-bottom: 1px solid var(--pine);
  padding-bottom: 2px;
  transition: all var(--transition);
  align-self: flex-start;
}

.project-link:hover {
  gap: 14px;
  color: var(--pine-mid);
  border-color: var(--pine-mid);
}

/* ============================================
   BRANDS
   ============================================ */

.brands {
  padding: 80px;
  background: var(--white);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brands-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.brands-inner .section-label {
  color: var(--muted);
  margin-bottom: 48px;
}

.brands-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
}

.brand-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.brand-item:hover img {
  opacity: 1;
}

.brand-item span,
.brand-item a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.brand-item a:hover {
  color: var(--pine);
}

.brand-item a svg {
  transition: transform var(--transition);
}

.brand-item a:hover svg {
  transform: translateX(3px);
}

.brand-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 120px 80px;
  background: var(--off);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-left .section-heading {
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

.contact-detail span:not(.detail-label),
.contact-detail a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--pine);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--pine);
}

/* Contact form */

.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  background: var(--off);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pine);
  background: var(--white);
}

.contact-form .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--pine);
  color: var(--white);
  padding: 60px 80px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 32px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--peach);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--peach);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 1024px) {
  .nav {
    padding: 0 28px;
  }

  .hero-body {
    padding: 0 40px;
  }

  .about {
    padding: 80px 40px;
  }

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

  .about-left {
    position: static;
  }

  .projects-header {
    padding: 80px 40px 48px;
  }

  .project,
  .project-reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-reverse .project-media { order: 1; }
  .project-reverse .project-content { order: 2; }

  .project-media {
    height: 380px;
  }

  .project-content {
    padding: 40px;
  }

  .brands {
    padding: 60px 40px;
  }

  .contact {
    padding: 80px 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    padding: 36px;
  }

  .footer {
    padding: 48px 40px 32px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 640px) {
  .nav {
    padding: 0 20px;
    height: 64px;
  }

  .nav-logo img {
    height: 30px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero-body {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-scroll {
    display: none;
  }

  .about {
    padding: 60px 24px;
  }

  .about-lead {
    font-size: 1.15rem;
  }

  .projects-header {
    padding: 60px 24px 40px;
  }

  .section-heading {
    font-size: 2.2rem;
  }

  .project-media {
    height: 300px;
  }

  .project-content {
    padding: 32px 24px;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .brands {
    padding: 48px 24px;
  }

  .brands-grid {
    flex-direction: column;
  }

  .brand-divider {
    width: 60px;
    height: 1px;
  }

  .contact {
    padding: 60px 24px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .footer {
    padding: 40px 24px 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================
   ACCESSIBILITY + PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}
