/* ============================================
   PLOWSHARE SOLUTIONS
   Design: Editorial minimalism
   Palette: Off-white ground, near-black text, sage green accent
   Typography: Cormorant Garamond (display) + DM Sans (body)
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg:         #F7F5F0;
  --bg-alt:     #EEECEA;
  --ink:        #1A1A18;
  --ink-muted:  #6B6B67;
  --accent:     #6B8F71;      /* sage green */
  --accent-lt:  #E8F0E9;
  --rule:       #D8D5CF;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { max-width: 62ch; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(26,26,24,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

/* ============================================
   PAGE WRAPPER (offset for fixed nav)
============================================ */
.page {
  padding-top: var(--nav-h);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: calc(90vh - var(--nav-h) - 100px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,24,0.72) 0%,
    rgba(26,26,24,0.2) 50%,
    rgba(26,26,24,0.05) 100%
  );
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

/* Full-width semi-transparent band behind hero text */
.hero__text-band {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(42, 40, 37, 0.50);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}

.hero__title {
  color: var(--white);
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 14ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

/* ============================================
   SECTION: INTRO STRIP
============================================ */
.intro {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.intro__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.intro__line {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.intro__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  max-width: none;
  line-height: 1.5;
}

/* ============================================
   SECTION: SERVICES
============================================ */
.services__header {
  margin-bottom: 4rem;
}

.services__label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
  cursor: default;
}

.service-card:hover {
  background: var(--white);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  filter: grayscale(30%);
  transition: opacity 0.25s, filter 0.25s;
}

.service-card:hover .service-card__icon {
  opacity: 1;
  filter: grayscale(0%);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ============================================
   SECTION: ABOUT PREVIEW (homepage)
============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-preview__label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.about-preview__body {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.about-preview__visual {
  aspect-ratio: 4/3;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.about-preview__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
}

/* ============================================
   SECTION: WORK PREVIEW (homepage)
============================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 2rem;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s;
}

.work-card:hover {
  border-color: var(--accent);
}

.work-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.work-card--placeholder {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.work-card--placeholder .work-card__title {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--rule);
}

/* ============================================
   BUTTON / LINK CTA
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
  margin-top: 2rem;
}

.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.9rem;
}

.btn__arrow {
  font-size: 1rem;
  line-height: 1;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__logo img {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ============================================
   INNER PAGE HERO (About, Services, Work)
============================================ */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero__label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-hero__title {
  font-style: italic;
  max-width: 18ch;
}

/* ============================================
   ABOUT PAGE
============================================ */
.about-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-body p + p {
  margin-top: 1.25rem;
}

.about-sidebar {
  padding-top: 0.5rem;
}

.sidebar-block {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.sidebar-block__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.sidebar-block__list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 2;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.sidebar-link:hover {
  color: var(--accent);
}

.sidebar-link svg {
  flex-shrink: 0;
}

/* About page headshot */
.about-headshot {
  margin-bottom: 2rem;
}

.about-headshot img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
}

.about-headshot__name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: none;
}

/* Services page bullet lists */
.service-detail-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.service-detail-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.9;
}

.service-detail-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 2;
}

/* ============================================
   SERVICES PAGE
============================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.service-row__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  padding-top: 0.2rem;
}

.service-row__title {
  font-size: 1.6rem;
}

.service-row__desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ============================================
   WORK / CASE STUDIES PAGE
============================================ */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.work-item__meta {}

.work-item__tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.work-item__title {
  font-size: 1.5rem;
  font-weight: 300;
}

.work-item__body {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.work-item__placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--rule);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .about-preview { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-preview__visual { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .about-body { grid-template-columns: 1fr; gap: 3rem; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row__desc { grid-column: 2; }
  .work-item { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4.5rem 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 3rem 2rem;
    gap: 2rem;
    align-items: flex-start;
    font-size: 1.1rem;
  }
  .nav__toggle { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .intro__inner { gap: 2rem; }
  .service-row { grid-template-columns: 1fr; }
  .service-row__number { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
