/* ==========================================================================
   Plainfield Concrete Co. — Stylesheet
   Industrial-clean aesthetic: dark charcoal + warm off-white + gold accent
   Mobile-first responsive design
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Work+Sans:wght@400;600&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --color-dark: #1a1a1a;
  --color-light: #f5f2ed;
  --color-accent: #d4a843;
  --color-text: #333333;
  --color-gray: #666666;
  --color-white: #ffffff;
  --color-border: #e0dcd6;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --container-max: 1140px;
  --container-narrow: 800px;
  --header-height: 72px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #b8912e;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p + p { margin-top: var(--space-sm); }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-light);
}

/* Subtle concrete texture overlay */
.section--texture {
  position: relative;
}

.section--texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section--texture > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Grid
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-dark);
  box-shadow: var(--shadow);
  height: var(--header-height);
}

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

.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav {
  display: none;
}

.header__nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
}

.header__nav-list {
  display: flex;
  flex-direction: column;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: block;
  padding: 0.75rem var(--space-sm);
  color: var(--color-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-accent);
}

/* Dropdown */
.header__dropdown {
  display: none;
  flex-direction: column;
  background-color: #222;
}

.header__nav-item:hover .header__dropdown,
.header__nav-item.is-open .header__dropdown {
  display: flex;
}

.header__dropdown-link {
  display: block;
  padding: 0.6rem var(--space-sm) 0.6rem 2rem;
  color: #ccc;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-light);
  transition: var(--transition);
}

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

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

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

/* Partner text next to logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__brand {
  display: none;
}

/* Header CTA */
.header__cta {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50vh;
  padding: var(--space-xl) 0;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.85));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__title {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.hero__subtitle {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: #b8912e;
  border-color: #b8912e;
  color: var(--color-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

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

.btn--dark:hover {
  background-color: #333;
  border-color: #333;
  color: var(--color-white);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition);
}

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

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  background-color: var(--color-light);
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--color-accent);
}

.service-card__title {
  margin-bottom: var(--space-xs);
  font-size: 1.15rem;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
}

.service-card__link:hover {
  color: #b8912e;
}

/* ==========================================================================
   Value Props / Feature Grid
   ========================================================================== */
.value-prop {
  text-align: center;
  padding: var(--space-sm);
}

.value-prop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-xs);
  background-color: var(--color-accent);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.value-prop__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.value-prop__text {
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* ==========================================================================
   Project Photos Row
   ========================================================================== */
.photo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.photo-row__img {
  border-radius: var(--radius);
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-sm) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 0 var(--space-sm) 0;
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-sm);
}

.form__label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.section--dark .form__label {
  color: var(--color-light);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   CTA Block
   ========================================================================== */
.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  background-color: var(--color-dark);
  color: var(--color-light);
}

.cta-block__title {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.cta-block__text {
  margin-bottom: var(--space-md);
  color: #ccc;
}

.cta-block__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.breadcrumb a {
  color: var(--color-gray);
}

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

.breadcrumb__sep {
  margin: 0 0.4rem;
  color: #aaa;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin-bottom: var(--space-xs);
}

.section__header p {
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section__header--left {
  text-align: left;
}

.section__header--left p {
  margin: 0;
}

/* ==========================================================================
   Service Area Cards
   ========================================================================== */
.area-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition);
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
}

.area-card__title {
  margin-bottom: var(--space-xs);
}

.area-card__text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.blog-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
}

.blog-card__title {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
}

.blog-card__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ==========================================================================
   Blog Post Content
   ========================================================================== */
.post-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.post-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.post-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.post-content p {
  margin-bottom: var(--space-sm);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process {
  counter-reset: step;
}

.process__step {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  counter-increment: step;
}

.process__step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.process__step-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.process__step-content p {
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-dark);
  color: #aaa;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.footer__link {
  display: block;
  color: #aaa;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer__partner {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer__contact-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.8rem;
}

.footer__bottom a {
  color: #aaa;
}

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

/* ==========================================================================
   Mobile Click-to-Call
   ========================================================================== */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--color-accent);
  color: var(--color-dark);
  text-align: center;
  padding: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-cta:hover {
  background-color: #b8912e;
  color: var(--color-dark);
}

/* ==========================================================================
   Scroll Fade-in Animation (Progressive Enhancement)
   Content is visible by default. Animations only activate after JS loads
   and adds .js-ready to <html>. This prevents invisible sections if
   IntersectionObserver fails or JS doesn't load.
   ========================================================================== */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--color-accent); }
.text-light { color: var(--color-light); }
.text-gray { color: var(--color-gray); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Responsive: Tablet (600px+)
   ========================================================================== */
@media (min-width: 600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .hero__title { font-size: 2.5rem; }
  .hero__actions { flex-direction: row; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .photo-row { grid-template-columns: repeat(3, 1fr); }

  .cta-block__actions { flex-direction: row; justify-content: center; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Responsive: Desktop (900px+)
   ========================================================================== */
@media (min-width: 900px) {
  h1 { font-size: 3rem; }

  .container { padding: 0 var(--space-md); }

  .hero { min-height: 60vh; }
  .hero__title { font-size: 3rem; }
  .hero__subtitle { font-size: 1.2rem; }

  .section { padding: var(--space-2xl) 0; }

  /* Desktop nav */
  .header__hamburger { display: none; }

  .header__nav {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .header__nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Desktop dropdown */
  .header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-dark);
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--color-accent);
    padding: 0.5rem 0;
  }

  .header__dropdown-link {
    padding: 0.5rem 1.25rem;
  }

  /* Desktop brand text */
  .header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .header__brand-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .header__brand-partner {
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 0.02em;
  }

  /* Desktop CTA */
  .header__cta {
    display: inline-block;
    margin-left: var(--space-sm);
  }

  /* Grid */
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .footer__grid { grid-template-columns: repeat(4, 1fr); }

  /* Hide mobile CTA on desktop */
  .mobile-cta { display: none; }
}

/* ==========================================================================
   Responsive: Large Desktop (1100px+)
   ========================================================================== */
@media (min-width: 1100px) {
  .hero__title { font-size: 3.5rem; }
}
