/* ==========================================================================
   HarNavCrafts — Hero Section
   Fonts: Fraunces (display) / Outfit (body)
   ========================================================================== */

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ink: #1c1410;          /* near-black text, warm tint */
  --ink-soft: #4a4038;     /* softened body text on light areas */
  --cream: #fbf7f2;        /* glass / card tint */
  --rose: #e8b4bc;         /* brand pink, pulled from logo */
  --rose-deep: #c98a95;

  --radius-frame: 32px;
  --radius-pill: 20px;

  --page-bg: #fff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

/* ==========================================================================
   Page frame — dark surround, like the reference device/browser mockup
   ========================================================================== */

.page-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: clamp(14px, 3vw, 40px); */
}

/* ==========================================================================
   Hero card
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(115deg, rgba(255,250,246,0.94) 0%, rgba(255,250,246,0.75) 22%, rgba(255,250,246,0.25) 42%, rgba(255,250,246,0) 58%),
    url('../images/home-hero.webp');
  background-size: cover;
  background-position: center;
  /* box-shadow: 0 30px 80px rgba(0,0,0,0.45); */
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header / Navbar — glass pill, matches reference exactly
   ========================================================================== */

.site-header {
    position: fixed;
    z-index: 20;
    padding: clamp(16px, 2.4vw, 14px) clamp(16px, 2.6vw, 32px) 0;
    width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 22px;
  box-shadow: 0 8px 30px rgba(20, 10, 10, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
}

.nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
  padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    top: 10p;
    height: 1.5px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.28s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { flex-shrink: 0; transition: transform 0.2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

.btn-pill {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.7);
}

.btn-pill:hover {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(20,10,10,0.10);
}
.btn-pill.mobile-cta:hover {
    background: #1c1410 !important;
    box-shadow: 0 6px 18px rgba(20,10,10,0.10);
    transform: translate(0px, -2px);
}

.btn-dark {
  background: var(--ink);
  color: #fffaf6;
  padding: 16px 26px;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.menu-toggle:hover { background: #ffffff; }

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.menu-toggle-bars span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  padding: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 420px;
  opacity: 1;
}

.mobile-menu a {
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
}

.mobile-menu a:hover { background: rgba(0,0,0,0.05); }

.mobile-cta {
  justify-content: center;
  margin-top: 6px;
  background: var(--ink);
  color: #fff;
}

/* ==========================================================================
   Hero content
   ========================================================================== */

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  padding-top: 155px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 6vw, 96px);
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 26px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.link-underline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1.4px solid var(--ink);
  transition: opacity 0.2s ease;
}

.link-underline:hover { opacity: 0.6; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex; }
}

@media (max-width: 980px) {
  .site-header { padding-top: 20px; }
}

@media (max-width: 640px) {
  .hero { border-radius: 0px; min-height: 56vh; background-position: 62% center;}
  .navbar { padding: 8px 8px 8px 14px; }
  .brand-name { font-size: 1.08rem; }
  .btn-pill span { display: none; }
  .btn-pill { padding: 10px 14px; }
  .hero-content { padding: 140px 20px 60px !important; }
  .hero-cta-group { gap: 16px; }
  .btn-dark { padding: 14px 20px; font-size: 0.9rem; }
  .nav-actions .btn.btn-pill svg {
		height: 18px;
		width: 18px;
	}
}

@media (max-width: 440px) {
	:root {
		--radius-pill: 14px;
	}
	nav .nav-actions .btn-pill { display: none; }
	.mobile-menu {
	  border-radius: 16px;
	}
}
