/* ===================================================
   CL Made — Web Design & Development
   =================================================== */

:root {
  --corduroy: #577267;      /* dark green */
  --corduroy-deep: #3f5449; /* darker shade for depth */
  --corduroy-ink: #1c2721;  /* near-black green, deepest shade */
  --mantle: #8CA196;        /* muted sage */
  --mantle-light: #b9c9c1;  /* lighter sage */
  --tan: #C1B1A0;           /* warm bison hide */
  --tan-deep: #8f7c68;      /* darker tan for contrast accents */
  --tan-light: #ddd2c6;     /* lighter tan */
  --cream: #F9F7F3;         /* background */
  --white: #FFFFFF;
  --ink: #1c2721;           /* near-black text, green-tinted */
  --body-text: #33403a;     /* darkened body copy for stronger contrast */
  --muted-text: #4c5a53;    /* darkened muted/secondary copy */

  --sage-wash: #E7EFEA;     /* services section — tinted sage panel */
  --tan-wash: #F4EADC;      /* portfolio section — tinted tan panel */
  --divider: rgba(28, 39, 33, 0.12);

  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 40px rgba(28, 39, 33, 0.16);
  --shadow-soft-lg: 0 20px 60px rgba(28, 39, 33, 0.24);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .logo-word {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

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

section { position: relative; z-index: 1; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- floating background blobs ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 420px; height: 420px;
  background: var(--mantle-light);
  top: -120px; right: -120px;
  animation: float-a 18s ease-in-out infinite;
}

.blob-2 {
  width: 320px; height: 320px;
  background: var(--tan-light);
  top: 380px; left: -140px;
  animation: float-b 22s ease-in-out infinite;
}

.blob-3 {
  width: 260px; height: 260px;
  background: var(--mantle);
  opacity: 0.35;
  bottom: -80px; right: 10%;
  animation: float-a 20s ease-in-out infinite reverse;
}

.blob-4 {
  width: 300px; height: 300px;
  background: var(--tan-light);
  opacity: 0.4;
  top: 30%; right: -160px;
  animation: float-b 26s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(0.95); }
}

/* ---------- nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.brand span {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:not(.pill) {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.25s ease;
}

.nav-links a:not(.pill):hover {
  background: rgba(140, 161, 150, 0.18);
}

/* ---------- pill buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pill-primary {
  background: linear-gradient(135deg, var(--corduroy-deep), var(--corduroy-ink));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.pill-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(87, 114, 103, 0.32);
}

.pill-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(28, 39, 33, 0.35);
}

.pill-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--corduroy);
  box-shadow: var(--shadow-soft);
}

.pill-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* ---------- hero ---------- */

.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--divider);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(28, 39, 33, 0.08);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--corduroy);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- section headers ---------- */

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head .eyebrow { margin-bottom: 18px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--body-text);
  font-size: 1.02rem;
}

/* ---------- services ---------- */

.services {
  padding: 100px 0;
  background: var(--sage-wash);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(28, 39, 33, 0.14);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft-lg);
  border-color: var(--corduroy);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--corduroy), var(--corduroy-deep));
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--body-text);
  font-size: 0.96rem;
}

/* ---------- portfolio / uploads ---------- */

.portfolio {
  padding: 100px 0;
  background: var(--tan-wash);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(143, 124, 104, 0.55);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--tan-deep);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.project-slot:hover {
  border-color: var(--corduroy-deep);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.project-slot .plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(143, 124, 104, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
}

.project-slot span {
  font-size: 0.85rem;
  font-weight: 500;
}

.portfolio-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--tan-deep);
  font-style: italic;
}

/* ---------- contact ---------- */

.contact {
  padding: 110px 0 130px;
  text-align: center;
  position: relative;
  background: var(--corduroy-ink);
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(140, 161, 150, 0.18), transparent 70%);
  pointer-events: none;
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--corduroy), var(--corduroy-deep));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 72px 48px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  left: -60px;
}

.contact-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -60px;
  right: -40px;
}

.contact-card h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 16px;
  position: relative;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
  margin: 0 auto 36px;
  position: relative;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 18px 34px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.email-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mantle);
  box-shadow: 0 0 0 5px rgba(140, 161, 150, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(140, 161, 150, 0.3); }
  50% { box-shadow: 0 0 0 9px rgba(140, 161, 150, 0.12); }
}

/* ---------- footer ---------- */

footer {
  padding: 36px 0 44px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-text);
  background: var(--cream);
}

footer .brand {
  justify-content: center;
  margin-bottom: 14px;
}

footer .brand img { height: 28px; width: 28px; }
footer .brand span { font-size: 0.9rem; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.pill) { display: none; }
  .service-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
  .contact-card { padding: 56px 28px; }
}
