/* =============================================
   House of Sprouse — Main Stylesheet
   ============================================= */

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

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --light-gray: #f0ede8;
  --mid-gray: #c8c4bc;
  --text-muted: #9a9590;
  --text-body: #4a4845;
  --text-dark: #1a1917;
  --accent: #b8a898;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  text-transform: uppercase;
  text-decoration: none;
}

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

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* --- Hero --- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #1a1917;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 18, 16, 0.50);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(60px, 9vw, 108px);
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

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

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.8vw, 26px);
  color: rgba(255,255,255,0.92);
  margin-bottom: 56px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.45);
  margin: 0 auto 56px;
}

.hero-tagline {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  max-width: 360px;
  line-height: 2;
}

/* --- Sections --- */

section {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--light-gray);
  max-width: 80px;
}

/* --- About --- */

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

.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.about-headline em {
  font-style: italic;
}

.about-body {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
}

.about-body p + p {
  margin-top: 20px;
}

.principle-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.principle {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principle-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 2px;
  min-width: 20px;
}

.principle-text {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.6;
}

/* --- Contact --- */

.contact-section {
  background: var(--off-white);
  padding: 100px 0;
}

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

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

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

.contact-item {
  border-top: 0.5px solid var(--mid-gray);
  padding-top: 24px;
}

.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 400;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.contact-item-value a {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 0.5px solid var(--mid-gray);
  transition: border-color 0.2s;
}

.contact-item-value a:hover {
  border-color: var(--text-dark);
}

/* --- Footer --- */

footer {
  border-top: 0.5px solid var(--light-gray);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 300;
}

/* --- Animations --- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.30s; }
.fade-in:nth-child(4) { animation-delay: 0.45s; }
.fade-in:nth-child(5) { animation-delay: 0.60s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hamburger toggle button --- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dark);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

/* X state */
.nav-toggle--open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Responsive --- */

@media (max-width: 768px) {
  nav { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--light-gray);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-links.nav-open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 11px;
    letter-spacing: 0.25em;
  }

  section { padding: 60px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}


/* =============================================
   Login Page
   ============================================= */

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.login-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.login-card h1 em {
  font-style: italic;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: 0.5px solid var(--mid-gray);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.login-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.login-form input[type="email"]:focus {
  border-color: var(--accent);
}

.login-form button[type="submit"] {
  padding: 14px 32px;
  background: var(--text-dark);
  color: var(--off-white);
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.login-form button[type="submit"]:hover:not(:disabled) {
  background: var(--accent);
}

.login-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-success {
  padding: 28px 24px;
  border: 0.5px solid var(--mid-gray);
  background: var(--white);
}

.login-success .login-success-check {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.login-success-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.login-error {
  margin-top: 8px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 0.5px solid #e8c4c4;
  color: #b04040;
  font-size: 0.82rem;
}


/* =============================================
   Client Portal
   ============================================= */

.portal-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portal-main {
  display: none;
  padding: 130px 48px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.portal-main.visible { display: block; }

.portal-header {
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--light-gray);
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.portal-header-text .eyebrow { margin-bottom: 12px; }

.portal-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--text-dark);
}

.portal-header h1 em { font-style: italic; }

.portal-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.portal-signout {
  background: none;
  border: 0.5px solid var(--mid-gray);
  color: var(--text-muted);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.portal-signout:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portal-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.portal-empty p {
  font-size: 0.88rem;
  line-height: 1.85;
}

.portal-empty .portal-empty-rule {
  width: 32px;
  height: 0.5px;
  background: var(--mid-gray);
  margin: 24px auto;
}

@media (max-width: 768px) {
  .portal-main { padding: 110px 24px 60px; }
  .portal-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}


