/* ==========================================================
   Stone River Construction - site styles
   ----------------------------------------------------------
   1. Colors & fonts (change the brand here)
   2. Basics
   3. Buttons
   4. Header
   5. Hero
   6. Sections
   7. Our Promise
   8. Services
   9. How We Work
   10. Call to action
   11. Footer
   12. Phones & tablets
   ========================================================== */


/* ---------- 1. Colors & fonts ---------- */
:root {
  --orange:       #F5811F;   /* brand orange from the logo */
  --orange-dark:  #D96A0B;   /* button hover */
  --charcoal:     #2E2D2C;   /* header, dark section */
  --stone:        #676666;   /* brand gray from the old site */
  --text:         #33312F;   /* body text */
  --text-light:   #6B6763;   /* secondary text */
  --sand:         #F5F2EE;   /* light section background */
  --white:        #FFFFFF;
  --line:         #E4DFD8;   /* thin borders */

  --font-body:    "Barlow", Arial, sans-serif;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;

  --max-width:    1180px;    /* widest the content gets */
  --radius:       6px;       /* corner rounding */
}


/* ---------- 2. Basics ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;  /* so the sticky header doesn't cover headings */
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: 64px; }
h2 { font-size: 44px; }
h3 { font-size: 26px; font-weight: 600; }

/* Centers content and adds side padding */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Small orange label above headings */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 12px;
}


/* ---------- 3. Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}
.button-primary:hover {
  background: var(--orange-dark);
}

.button-outline {
  border-color: var(--white);
  color: var(--white);
}
.button-outline:hover {
  background: var(--white);
  color: var(--charcoal);
}

.button-dark {
  background: var(--charcoal);
  color: var(--white);
}
.button-dark:hover {
  background: #000;
}


/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--charcoal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.logo img {
  width: 200px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #E9E5E0;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.main-nav a:hover {
  color: var(--orange);
}

.header-phone {
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--white);
}


/* ---------- 5. Hero ---------- */
.hero {
  /* Dark gradient over the kitchen photo so the white text is easy to read */
  background:
    linear-gradient(90deg, rgba(30, 29, 28, 0.88) 0%, rgba(30, 29, 28, 0.65) 50%, rgba(30, 29, 28, 0.25) 100%),
    url("../images/kitchen_home.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 560px;
  font-size: 20px;
  color: #EDE9E4;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* ---------- 6. Sections ---------- */
.section {
  padding: 100px 0;
}

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

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

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

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-light);
  font-size: 20px;
}


/* ---------- 7. Our Promise ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.promise-card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.promise-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}

.promise-card h3 {
  margin-bottom: 12px;
}

.promise-card p {
  color: var(--text-light);
}


/* ---------- 8. Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* The service photos are round, so show them as circles */
.service-card img {
  width: 170px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 32px auto 0;
  border: 4px solid var(--white);
  outline: 2px solid var(--orange);
}

.service-body {
  padding: 24px;
  text-align: center;
}

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

.service-body p {
  font-size: 16px;
  color: var(--text-light);
}


/* ---------- 9. How We Work ---------- */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;  /* numbers the steps automatically */
}

.process-list li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.process-list li::before {
  content: "Step " counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 8px;
}

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

.process-list p {
  color: #C9C4BE;
  font-size: 17px;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: #C9C4BE;
}


/* ---------- 10. Call to action ---------- */
.cta {
  background: var(--orange);
  color: var(--white);
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  font-size: 20px;
}


/* ---------- 11. Footer ---------- */
.site-footer {
  background: #1F1E1D;
  color: #B8B3AD;
  padding: 48px 0;
  font-size: 16px;
}

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

.site-footer img {
  width: 170px;
  height: auto;
}

.footer-info a {
  color: var(--orange);
  font-weight: 600;
}

.copyright {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}


/* ---------- 12. Phones & tablets ---------- */

/* Tablets */
@media (max-width: 1000px) {
  h1 { font-size: 52px; }
  .main-nav { display: none; }      /* menu hidden; the page is short enough to scroll */
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 700px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  h2 { font-size: 34px; }

  .wrap { padding: 0 16px; }
  .header-inner { height: 68px; }
  .logo img { width: 150px; }
  .header-phone { font-size: 20px; }

  .hero-inner { min-height: 520px; padding-top: 56px; padding-bottom: 56px; }
  .hero { background-position: 70% center; }

  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 36px; }

  .promise-grid,
  .service-grid,
  .process-list { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
}
