/*
Theme Name: Apple Bend Creations
Theme URI: https://applebendcreations.com
Author: Apple Bend Creations
Description: A handcrafted, responsive WordPress theme for Apple Bend Creations with product, service, business, and custom-order sections.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: apple-bend-creations
*/

:root {
  --navy: #102231;
  --navy-2: #19384e;
  --cream: #f6ead0;
  --paper: #fffaf0;
  --gold: #c3924e;
  --red: #a93628;
  --green: #53632c;
  --ink: #201a16;
  --muted: #6d6258;
  --line: rgba(32, 26, 22, .14);
  --shadow: 0 18px 50px rgba(22, 24, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--red); font: 700 .76rem/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.35rem; }
p { margin-top: 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,250,240,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand small { margin-top: 6px; color: var(--muted); font: 700 .65rem/1 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 24px; font: 700 .84rem/1 Arial, sans-serif; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--red); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font: 700 .83rem/1 Arial, sans-serif; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--navy-2); }
.button.alt { background: transparent; color: var(--navy); }

.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 118px) 0; background: var(--cream); }
.hero:before { content: ''; position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(3deg, transparent 0 5px, rgba(85,54,28,.16) 6px 7px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; }
.hero p.lead { max-width: 660px; color: #4a423b; font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-logo { position: relative; }
.hero-logo:after { content: ''; position: absolute; inset: 10% 3% -2%; z-index: -1; border-radius: 50%; background: rgba(16,34,49,.18); filter: blur(28px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--navy); font: 700 .76rem/1.4 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: clamp(70px, 9vw, 112px) 0; }
.section.dark { color: #fff; background: var(--navy); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p:last-child { color: #cdd7dd; }
.dark .card { background: var(--cream); color: var(--ink); border-color: rgba(195,146,78,.45); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 220px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.card .number { color: var(--gold); font: 700 .72rem/1 Arial, sans-serif; letter-spacing: .16em; }
.card p { color: var(--muted); }
.card strong { color: var(--red); }
#products .card { background: #f6ead0; color: #201a16; }
#products .card h3 { margin: 14px 0 12px; color: #102231; font-size: 1.42rem; }
#products .card p { color: #4f463e; font-size: 1rem; line-height: 1.6; }
#products .card .number { color: #a93628; font-size: .82rem; }

.work-section { background: #efe1c4; }
.work-heading { max-width: none; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; }
.work-heading h2 { margin-bottom: 0; }
.work-heading > p { max-width: 620px; margin-bottom: 7px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; }
.work-item { position: relative; overflow: hidden; margin: 0; border: 4px solid #fffaf0; border-radius: 14px; background: var(--navy); box-shadow: 0 12px 28px rgba(37,27,17,.14); }
.work-item.tall { grid-row: span 2; }
.work-item.wide { grid-column: span 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-item:hover img { transform: scale(1.035); }
.work-item figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 5px; padding: 15px 17px 14px; border-top: 2px solid var(--gold); color: #fff; background: rgba(16,34,49,.97); box-shadow: 0 -7px 20px rgba(16,34,49,.28); }
.work-item figcaption b { color: #fff; font-size: 1.12rem; line-height: 1.2; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.work-item figcaption span { color: var(--cream); font: 700 .76rem/1.35 Arial, sans-serif; letter-spacing: .065em; text-transform: uppercase; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.16); }
.step { padding: 30px 26px; background: var(--navy); }
.step b { display: block; margin-bottom: 22px; color: var(--gold); font: 700 2rem/1 Georgia, serif; }
.step p { color: #cdd7dd; }

.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 68px; align-items: center; }
#about { color: #201a16; background: #fffaf0; }
#about h2 { color: #102231; }
#about p { color: #4f463e; }
#about .eyebrow { color: #a93628; }
.story-mark { padding: 42px; border: 1px solid rgba(195,146,78,.45); border-radius: 22px; background: #f6ead0; text-align: center; box-shadow: 0 14px 34px rgba(32,26,22,.1); }
.story-mark img { width: min(340px, 100%); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.fact { padding: 18px; border-left: 3px solid var(--gold); background: #fff; }
.fact b { display: block; color: var(--navy); }

.order-shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.order-notes { color: #d7e0e5; }
.order-notes ul { padding-left: 18px; }
.form-card { padding: 34px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font: 700 .75rem/1.2 Arial, sans-serif; letter-spacing: .035em; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #cabfae; border-radius: 9px; background: #fff; color: var(--ink); font: 1rem/1.3 Arial, sans-serif; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(195,146,78,.28); border-color: var(--gold); }
.notice { margin-bottom: 18px; padding: 12px 15px; border-radius: 8px; background: #e6f2e7; color: #214e2a; }
.notice.error { background: #f7e0dc; color: #7b261c; }
.fine { margin-top: 14px; color: var(--muted); font: .78rem/1.5 Arial, sans-serif; }

.site-footer { padding: 38px 0; border-top: 5px solid var(--gold); background: #0a1721; color: #e9e2d7; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-grid p { margin: 4px 0; }
.footer-grid a { color: #fff; }

.about-hero { padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; background: var(--cream); }
.about-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.about-hero h1 { margin-bottom: 22px; }
.about-lead { max-width: 560px; color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
.couple-photo { position: relative; margin: 0; transform: rotate(1.5deg); }
.couple-photo:before { content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: 0; border-radius: 20px; background: var(--gold); }
.couple-photo img { position: relative; z-index: 1; display: block; width: 100%; max-height: 680px; object-fit: cover; border: 8px solid #fffaf0; border-radius: 20px; box-shadow: var(--shadow); }
.couple-photo figcaption { position: relative; z-index: 2; margin: -48px 18px 0 auto; width: fit-content; padding: 10px 15px; border-radius: 8px; background: var(--navy); color: #fff; font: 700 .72rem/1.2 Arial, sans-serif; letter-spacing: .06em; }
.narrow-copy { max-width: 850px; }
.big-copy { color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.6rem); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bio-card { padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.06); }
.bio-card p { color: #d4dde2; }
.bio-name { color: var(--gold) !important; font: 700 .78rem/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.story-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.story-split p { font-size: 1.08rem; }
.family-section { background: #efe1c4; }
.family-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.family-note { padding: 36px; border-radius: 22px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.family-note img { width: min(220px, 80%); }
.family-note blockquote { margin: 24px 0 0; color: var(--navy); font-size: 1.35rem; font-style: italic; }
.about-cta { padding: 56px 0; background: var(--red); color: #fff; }
.about-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.about-cta h2 { margin-bottom: 0; font-size: clamp(1.9rem, 3.5vw, 3rem); }
.about-cta .eyebrow { color: var(--cream); }
.about-cta .button { border-color: #fff; background: #fff; color: var(--navy); }

@media (max-width: 850px) {
  .menu a:not(.button) { display: none; }
  .hero-grid, .story, .order-shell { grid-template-columns: 1fr; }
  .hero-logo { max-width: 430px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-grid, .story-split, .family-grid { grid-template-columns: 1fr; }
  .couple-photo { max-width: 650px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, 1160px); }
  .brand span { display: none; }
  .grid, .process, .form-grid, .facts, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .form-card { padding: 23px; }
  .work-heading { grid-template-columns: 1fr; gap: 8px; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .work-item.tall, .work-item.wide { grid-row: span 1; grid-column: span 1; }
  .service-grid { grid-template-columns: 1fr; }
  .about-cta-inner { display: grid; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* High-contrast safeguards. Kept at the end so WordPress block styles cannot hide key content. */
body #products .card {
  background-color: #f6ead0 !important;
  color: #201a16 !important;
}
body #products .card h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #102231 !important;
}
body #products .card p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #3f3731 !important;
}
body #products .card .number { color: #a93628 !important; }
body #about.section {
  color: #201a16 !important;
  background: #f6ead0 !important;
}
body #about h2 { color: #102231 !important; }
body #about p { color: #3f3731 !important; }
body #about .story-mark { background: #fffaf0 !important; }
