/* ============================================
   MeyCraft Carpentry Solutions — base styles
   ============================================ */

:root {
  --color-bg: #f7eece;
  --color-bg-alt: #efe4c4;
  --color-wood: #4a3222;
  --color-wood-dark: #2f1f15;
  --color-wood-light: #6e4a30;
  --color-ocean: #4a5b4f;
  --color-ocean-dark: #333f36;
  --color-sand: #e8dcc0;
  --color-text: #2b2320;
  --color-text-light: #5f6b5f;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;

  --font-heading: 'Michroma', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(43, 35, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-wood-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--color-text-light); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-photo-bg {
  position: relative;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}
.section-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 31, 21, 0.75);
}
.section-photo-bg .container { position: relative; z-index: 1; }
.section-photo-bg .section-head {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
}
.section-photo-bg .section-head .eyebrow { color: var(--color-ocean); }
.section-photo-bg .section-head h2 { color: var(--color-wood-dark); }
.section-photo-bg .section-head p { color: var(--color-text-light); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-ocean);
  margin-bottom: 12px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-wood);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-wood-dark); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover { background: #1ebe5b; box-shadow: var(--shadow); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43,35,32,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo .logo-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-wood-dark);
  letter-spacing: 0.01em;
}
.logo .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ocean);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--color-wood);
  color: var(--color-wood-dark);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-wood-dark);
  margin: 5px 0;
  transition: 0.2s ease;
}

@media (max-width: 860px) {
  .nav { justify-content: center; gap: 28px; }
  .nav > nav { display: contents; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 16px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid rgba(43,35,32,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-ocean-dark), var(--color-ocean));
  color: var(--color-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 2px,
    transparent 2px,
    transparent 40px
  );
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-content { max-width: 640px; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.hero h1 { color: var(--color-white); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  background: linear-gradient(135deg, var(--color-ocean-dark), var(--color-ocean));
  color: var(--color-white);
  padding: 70px 0;
  overflow: visible;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--color-white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0; }

.thought-box {
  position: absolute;
  right: 0;
  bottom: -170px;
  z-index: 5;
  background: var(--color-bg);
  border: 1px solid rgba(74, 91, 79, 0.18);
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 360px;
  box-shadow: 0 16px 40px rgba(43, 35, 32, 0.18);
}
.thought-box::before,
.thought-box::after {
  content: '';
  position: absolute;
  background: var(--color-bg);
  border: 1px solid rgba(74, 91, 79, 0.18);
  border-radius: 50%;
}
.thought-box::before { width: 22px; height: 22px; bottom: -13px; left: 44px; }
.thought-box::after { width: 12px; height: 12px; bottom: -26px; left: 30px; }
.thought-question {
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-ocean);
  margin: 0 0 16px;
}
.thought-answer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.thought-answer li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-light);
}
.thought-answer li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-ocean);
}

@media (max-width: 860px) {
  .thought-box {
    position: static;
    max-width: none;
    margin-top: 32px;
  }
}

/* ---------- Placeholder photo blocks ---------- */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    var(--color-sand),
    var(--color-sand) 14px,
    #d9c69b 14px,
    #d9c69b 28px
  );
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}
.photo-placeholder .label {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: calc(100% - 24px);
  background: rgba(43, 35, 32, 0.72);
  color: var(--color-white);
  font-size: 0.78rem;
  padding: 8px 12px;
  margin: 12px;
  border-radius: 6px;
  font-weight: 500;
}
.carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  scrollbar-width: thin;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.photo-placeholder .photo-count {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  background: rgba(43, 35, 32, 0.72);
  color: var(--color-white);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.photo-placeholder .coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-wood);
  color: var(--color-white);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

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

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.service-card { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--color-ocean); }
.service-card ul { margin: 8px 0 0; padding-left: 20px; color: var(--color-text-light); }
.service-card li { margin-bottom: 6px; }
.service-card li::marker { color: var(--color-ocean); }

/* ---------- Process flow chart ---------- */
.flow-steps {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
}
.flow-step {
  position: relative;
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.flow-step-image {
  width: 100%;
  height: 230px;
  background-size: cover;
  background-position: center;
}
.flow-step-image.is-placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--color-sand),
    var(--color-sand) 14px,
    #d9c69b 14px,
    #d9c69b 28px
  );
  display: flex;
  align-items: flex-end;
}
.flow-step-image .label {
  background: rgba(43, 35, 32, 0.72);
  color: var(--color-white);
  font-size: 0.72rem;
  padding: 6px 10px;
  margin: 10px;
  border-radius: 6px;
  font-weight: 500;
}
.flow-step-number {
  position: absolute;
  top: 204px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-ocean);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 10px rgba(43, 35, 32, 0.25);
}
.flow-step:nth-child(4n+3) .flow-step-number { background: var(--color-wood); }
.flow-step-body { padding: 40px 30px 38px; }
.flow-step h3 { font-size: 1.35rem; margin: 0 0 12px; }
.flow-step p { color: var(--color-text-light); font-size: 1.02rem; margin: 0; }

.flow-arrow {
  flex: 0 0 44px;
  position: relative;
  align-self: center;
  height: 3px;
}
.flow-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 10px;
  top: 50%;
  height: 3px;
  background: var(--color-ocean);
  transform: translateY(-50%);
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--color-ocean);
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { flex-basis: 40px; width: 100%; align-self: stretch; }
  .flow-arrow::before {
    left: 50%; right: auto; top: 0; bottom: 10px; height: auto; width: 3px;
    transform: translateX(-50%);
  }
  .flow-arrow::after {
    left: 50%; right: auto; top: auto; bottom: 0; width: 0; height: 0;
    border-top: 12px solid var(--color-ocean);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: none;
    transform: translateX(-50%);
  }
}

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-list li {
  background: var(--color-white);
  border: 1px solid rgba(43,35,32,0.1);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-wood-dark);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 31, 21, 0.75);
}
.cta-photo-bg .container { position: relative; z-index: 1; }

/* ---------- About / values ---------- */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-sand);
  -webkit-text-stroke: 1.5px var(--color-wood);
  color: transparent;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-item h4 { margin: 0 0 4px; }
.contact-info-item p { margin: 0; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(43,35,32,0.18);
  background: var(--color-white);
  color: var(--color-text);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-wood);
  box-shadow: 0 0 0 3px rgba(122,74,43,0.15);
}
.form-note { font-size: 0.82rem; color: var(--color-text-light); }
.honeypot-field { position: absolute; left: -9999px; }

/* ---------- Gallery ---------- */
.gallery-note {
  background: var(--color-bg-alt);
  border: 1px dashed rgba(43,35,32,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 0.92rem;
  color: var(--color-text-light);
}
.gallery-note strong { color: var(--color-text); }

.gallery-category { margin-bottom: 56px; }
.gallery-category:last-child { margin-bottom: 0; }
.gallery-category h2 {
  border-bottom: 2px solid var(--color-sand);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ocean-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .logo-main { color: var(--color-white); }
.site-footer .logo-sub { color: var(--color-sand); }
.site-footer p { color: rgba(255,255,255,0.65); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Phone-width tightening ---------- */
@media (max-width: 600px) {
  .hero { padding: 56px 0; }
  .page-hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cta-banner { padding: 48px 0; }
  .flow-step-image { height: 180px; }
  .flow-step-number { top: 154px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 16px; right: 16px; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 90;
  font-size: 1.6rem;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
