/* ============================================
   Chain Collective Co — Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #ece7df;
  --color-bg-light: #f2ede6;
  --color-bg-dark: #2d3b35;
  --color-text: #2d2d2d;
  --color-text-light: #555;
  --color-text-on-dark: #e8d5c4;
  --color-accent: #d4a088;
  --color-accent-hover: #c48e75;
  --color-white: #fff;
  --color-border: #c9c2b8;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1280px;
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.bold {
  font-weight: 700;
  color: var(--color-text);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.grid-2.align-center {
  align-items: center;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-text);
}

.btn-white:hover {
  background: var(--color-bg-light);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.3));
}

.hero-overlay h1 {
  color: var(--color-white);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-overlay p {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
}

/* Hero variant — split layout */
.hero-split {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.hero-split .hero-image-wrap {
  overflow: hidden;
}

.hero-split .hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-split .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  background: var(--color-bg-light);
}

.hero-split .hero-content h1 {
  margin-bottom: 24px;
}

.hero-split .hero-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* Hero variant — full width with text below */
.hero-full {
  margin-top: 72px;
}

.hero-full .hero-image {
  border-radius: 12px;
  margin: 0 40px;
  width: calc(100% - 80px);
}

.hero-full .hero-tagline {
  padding: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-full .hero-tagline p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--color-text-light);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

/* --- Intro / Tagline --- */
.tagline-section {
  text-align: center;
  padding: 60px 0;
}

.tagline-section p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  max-width: 860px;
  margin: 0 auto;
  color: var(--color-text-light);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-card {
  background: var(--color-bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.service-card-body {
  padding: 32px;
}

.service-card-body h3 {
  margin-bottom: 16px;
}

.service-card-body p {
  margin-bottom: 12px;
}

.service-card-body ul {
  margin: 16px 0;
  padding-left: 0;
}

.service-card-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.service-card-body ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.service-engagement {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.service-engagement strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-engagement span {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* --- Service Detail Page --- */
.service-detail {
  margin-top: 72px;
  padding: 80px 0;
}

.service-detail .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.service-detail .breadcrumb a {
  color: var(--color-accent);
}

.service-detail .breadcrumb a:hover {
  text-decoration: underline;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.service-detail-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.service-detail-content h1 {
  margin-bottom: 24px;
}

.service-detail-content p {
  margin-bottom: 16px;
}

.service-detail-content ul {
  margin: 16px 0 24px;
}

.service-detail-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.service-detail-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --- Who This Is For --- */
.who-section .grid-2 {
  align-items: start;
}

.who-section h2 {
  font-style: italic;
}

.who-list h3 {
  font-style: italic;
  margin-bottom: 20px;
}

.who-list ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.who-list ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.who-section .automation-note {
  grid-column: 1 / -1;
  max-width: 100%;
  margin-top: 20px;
}

.who-section .automation-note p {
  font-size: 0.95rem;
}

/* --- Dark Section (About / Approach) --- */
.dark-section {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--section-padding);
}

.dark-section h2 {
  color: var(--color-text-on-dark);
  font-style: italic;
}

.dark-section p {
  color: rgba(232, 213, 196, 0.85);
}

.dark-section .btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- Approach Section (Home page) --- */
.approach-section .grid-2 {
  align-items: center;
}

.approach-content h2 {
  margin-bottom: 24px;
  font-style: italic;
}

.approach-content p {
  margin-bottom: 16px;
}

.approach-image {
  border-radius: 12px;
  height: 450px;
  object-fit: cover;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--section-padding);
}

.contact-section h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.contact-section > .container > p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-intro p {
  color: rgba(255,255,255,0.85);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-white);
}

.form-group label .required {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-white);
}

.form-group textarea {
  border-radius: 20px;
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn-white {
  align-self: flex-start;
  padding: 14px 36px;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success p {
  color: var(--color-white);
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 60px 0 40px;
  background: var(--color-bg-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: 0;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   SERVICE LIST PAGE (cards in row)
   ============================================ */
.service-list-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-list-card img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.service-list-card h3 {
  margin-bottom: 8px;
}

.service-list-card p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.service-list-card .learn-more {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-list-card .learn-more:hover {
  color: var(--color-accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .grid-2,
  .services-grid,
  .contact-grid,
  .service-detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-split .hero-image-wrap {
    height: 50vh;
    min-height: 300px;
  }

  .hero-split .hero-content {
    padding: 60px 40px;
  }

  .service-list-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-list-card img {
    width: 100%;
    height: 200px;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 16px 24px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-full .hero-image {
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .service-detail-image {
    height: 300px;
  }

  .approach-image {
    height: 300px;
  }

  .footer-inner {
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-image {
    height: 50vh;
    min-height: 350px;
  }
}
