/* AaraH UI/UX polish — loaded after styles.css.
   Goals: better typography hierarchy, refined spacing,
   cleaner mobile/tablet/desktop, no overflow on cards. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --content-max: 1200px;
  --section-y: clamp(64px, 9vw, 120px);
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 24px rgba(30, 20, 16, 0.06);
  --shadow-card: 0 14px 38px rgba(30, 20, 16, 0.08);
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.08rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Header refinements */
.site-header {
  background: rgba(20, 14, 12, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 14, 12, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.brand strong { font-weight: 700; letter-spacing: -0.005em; }
.nav a { font-weight: 600; letter-spacing: 0.005em; transition: color 0.2s ease; }
.nav a:hover { color: var(--gold-2); }

/* Button refinements — cleaner, more "premium" */
.header-cta, .button {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.header-cta, .button.primary {
  background: linear-gradient(135deg, #f6dcb1, #d7a04f);
  box-shadow: 0 10px 24px rgba(201, 140, 65, 0.28), inset 0 1px 0 rgba(255,255,255,0.4);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(201, 140, 65, 0.34); }
.portfolio-section .button.secondary {
  background: #fff;
  border: 1px solid rgba(40, 26, 21, 0.16);
  box-shadow: 0 4px 14px rgba(30, 20, 16, 0.05);
}

/* Hero */
.hero {
  min-height: clamp(620px, 92vh, 880px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.005em;
}
.hero-content > p:last-of-type {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.hero-trust span {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Proof strip */
.proof-inner {
  border-radius: var(--radius-lg);
  border-color: rgba(40, 26, 21, 0.08);
  background: #fffdfa;
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 24px;
}
.proof-inner h2 { margin: 8px 0 10px; }

/* Intent strip */
.intent-strip { gap: 8px; padding: 16px var(--section-x); }
.intent-strip a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}
.intent-strip a:hover { background: rgba(215, 160, 79, 0.18); color: #fff; }

/* Portfolio overview */
.portfolio-overview .meta-item {
  border-radius: var(--radius-md);
  background: #fffdfa;
  border-color: rgba(40, 26, 21, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}

/* Section heading */
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { font-size: 1rem; color: var(--muted); }

/* Cards — fix overflow, breathe more */
.portfolio-grid {
  gap: clamp(16px, 2vw, 24px);
}
.project-card {
  border-radius: var(--radius-md);
  border-color: rgba(40, 26, 21, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(30, 20, 16, 0.12);
}

/* Image containers — guarantee no cropping for t-shirt & business card */
.project-card img { background: #faf3eb; }
#tshirt .project-card img,
#businesscard .project-card img {
  object-fit: contain;
  padding: 14px;
  background: #fbf3ea;
}
#tshirt .project-card img { height: clamp(260px, 24vw, 360px); }
#businesscard .project-card img {
  height: clamp(220px, 18vw, 300px);
  aspect-ratio: auto;
}
#logo .project-card img { background: #fffaf5; }
#website .project-card img { background: #f5ede4; }

.project-head { padding: 18px 18px 10px; }
.project-head h3 { margin-bottom: 6px; font-size: 1.06rem; }
.project-head p { font-size: 0.92rem; line-height: 1.6; }

.case-toggle {
  border-radius: 10px;
  border-color: rgba(40, 26, 21, 0.14);
  background: #fffaf3;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.case-toggle:hover {
  background: linear-gradient(135deg, #fff3df, #f7e2bf);
  border-color: rgba(215, 160, 79, 0.4);
}
.case-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, #fff3df, #f7e2bf);
  border-color: rgba(215, 160, 79, 0.5);
}

.case-panel { padding: 16px 18px 20px; gap: 12px; }
.case-row h4 { letter-spacing: 0.08em; font-size: 0.74rem; }
.case-row p { font-size: 0.92rem; line-height: 1.6; color: #5a4a42; }

.load-more { margin: 28px auto 0; }

/* Contact */
.contact-inner h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 14px; }
.contact-inner > p { font-size: 1.04rem; }

/* Footer */
footer { padding: 36px var(--section-x); }
footer p { font-size: 0.84rem; color: rgba(255,255,255,0.62); }

/* Tablet refinements */
@media (max-width: 1080px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-orbit { width: min(72vw, 460px); }
  .hero { min-height: auto; padding-top: calc(var(--header-offset) + 32px); }
}

/* Mobile refinements */
@media (max-width: 680px) {
  .portfolio-section .portfolio-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .portfolio-section .project-card {
    width: 100%;
    min-width: 0;
  }

  .proof-inner { padding: 22px 20px 20px; border-radius: 14px; }
  .section-heading { margin-bottom: 24px; }
  .hero-actions .button { flex: 1 1 140px; min-height: 48px; }
  .hero-trust { gap: 6px; }
  .hero-trust span { font-size: 0.72rem; padding: 7px 10px; }
  .project-head { padding: 16px 14px 8px; }
  .case-toggle { margin: 0 14px 12px; width: calc(100% - 28px); min-height: 48px; }
  .case-panel { padding: 14px 16px 18px; }
  #tshirt .project-card img { height: 280px; }
  #businesscard .project-card img { height: 220px; }
  .intent-strip a { font-size: 0.7rem; padding: 0 12px; min-height: 34px; }
}