/* ============================================
   Damay Enterprises — Brand Stylesheet
   Colors: Charcoal #2F3437, Orange #F36B21
   Font: Inter Tight
   ============================================ */

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  color: #2F3437;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography Scale --- */
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
p  { font-size: 1.05rem; line-height: 1.7; color: #4a4f52; }

/* --- Layout --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

section {
  padding: 6rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 52, 55, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(47, 52, 55, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand img {
  height: 38px;
  width: auto;
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2F3437;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4f52;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: #F36B21;
}

.nav-cta {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #F36B21 !important;
  border: 1.5px solid #F36B21;
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: #F36B21;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #2F3437;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, #ffffff 0%, #f9f8f7 40%, #f4f2f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 107, 33, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 52, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 10s ease-in-out 3s infinite;
}

.hero-content {
  max-width: 48%;
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F36B21;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 28px;
}

.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: #F36B21;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  color: #5a6066;
  line-height: 1.7;
}

/* Large watermark logo */
.hero-watermark {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  animation: watermarkReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-watermark img {
  width: min(70vw, 820px);
  height: auto;
}

/* Geometric accent lines */
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-line {
  position: absolute;
  background: #2F3437;
  opacity: 0;
}

.line-1 {
  width: 1px;
  height: 40%;
  right: 28%;
  top: 10%;
  animation: lineGrow 1.2s ease 0.8s forwards;
}

.line-2 {
  width: 30%;
  height: 1px;
  right: 0;
  top: 72%;
  animation: lineGrowH 1.4s ease 1.0s forwards;
}

.line-3 {
  width: 1px;
  height: 25%;
  right: 52%;
  bottom: 8%;
  animation: lineGrow 1s ease 1.3s forwards;
}

.line-4 {
  width: 18%;
  height: 1px;
  left: 0;
  top: 28%;
  animation: lineGrowH 1.2s ease 1.1s forwards;
}

/* Accent dots */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: #F36B21;
}

.dot-1 {
  width: 8px;
  height: 8px;
  right: 22%;
  top: 20%;
  opacity: 0;
  animation: dotPop 0.5s ease 1.6s forwards, dotPulse 4s ease-in-out 2.1s infinite;
}

.dot-2 {
  width: 5px;
  height: 5px;
  right: 38%;
  bottom: 22%;
  opacity: 0;
  animation: dotPop 0.5s ease 1.8s forwards, dotPulse 5s ease-in-out 2.3s infinite;
}

.dot-3 {
  width: 6px;
  height: 6px;
  left: 8%;
  bottom: 30%;
  opacity: 0;
  animation: dotPop 0.5s ease 2.0s forwards, dotPulse 4.5s ease-in-out 2.5s infinite;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F36B21;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 560px;
}

/* --- Products --- */
.products {
  background: #fafafa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(47, 52, 55, 0.07);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(47, 52, 55, 0.1);
  border-color: transparent;
}

.product-card:hover::before {
  background: #F36B21;
}

.product-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #5a6066;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #F36B21;
  transition: gap 0.2s ease;
}

.product-link:hover {
  gap: 10px;
}

.product-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.product-link:hover svg {
  transform: translateX(2px);
}

/* --- About --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-mark {
  width: 220px;
  height: auto;
  opacity: 0.35;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  padding: 1.5rem 0;
}

.value-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F36B21;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-item p {
  font-size: 0.92rem;
  color: #6b7177;
}

/* --- Contact --- */
.contact {
  background: #2F3437;
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F36B21;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.85;
}

/* --- Footer --- */
.footer {
  background: #252829;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Legal Pages --- */
.legal {
  padding-top: 120px;
  padding-bottom: 4rem;
  min-height: 80vh;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal .updated {
  font-size: 0.88rem;
  color: #8a8f93;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4a4f52;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal ul li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.4rem;
}

.legal ul li::before {
  content: '\2022';
  position: absolute;
  left: -1rem;
  color: #F36B21;
}

.legal a {
  color: #F36B21;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    order: -1;
  }

  .about-mark {
    width: 140px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-watermark img {
    width: 90vw;
  }

  .hero-lines, .hero-dots {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(47, 52, 55, 0.08);
    box-shadow: 0 12px 24px rgba(47, 52, 55, 0.08);
  }

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

  .nav-toggle {
    display: flex;
  }

  .product-card {
    padding: 2rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes watermarkReveal {
  from { opacity: 0; transform: translateY(-50%) scale(0.9); }
  to   { opacity: 0.14; transform: translateY(-50%) scale(1); }
}

@keyframes lineGrow {
  from { opacity: 0; transform: scaleY(0); transform-origin: top; }
  to   { opacity: 0.06; transform: scaleY(1); transform-origin: top; }
}

@keyframes lineGrowH {
  from { opacity: 0; transform: scaleX(0); transform-origin: right; }
  to   { opacity: 0.06; transform: scaleX(1); transform-origin: right; }
}

@keyframes dotPop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 0.4; transform: scale(1); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.4); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.7; }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.4s; }
