/* Pattaya Renovation & Builder - white & light blue, "blueprint and tile" theme */
:root {
  --white: #ffffff;
  --sky: #eef6fd;          /* light blue panels */
  --sky-2: #dcecf9;        /* deeper light blue */
  --grid: #cfe3f5;         /* blueprint grid lines */
  --line: #c3dbef;         /* borders */
  --blue: #2a6fae;         /* buttons, links (4.9:1 on white) */
  --blue-dark: #1d5689;
  --ink: #12304a;          /* headings */
  --text: #263d52;         /* body */
  --mist: #5a6f83;         /* secondary text */
  --radius: 6px;
  --max: 1160px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-stretch: 112%; font-weight: 750; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-sky { background: var(--sky); }
.lead { font-size: 1.15rem; color: var(--mist); max-width: 58ch; }
.note, .small { color: var(--mist); }
.small { font-size: .875rem; }
.narrow { max-width: 70ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .45rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* blueprint grid paper */
.grid-paper {
  background-color: var(--sky);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

/* Header */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-stretch: 115%; line-height: 1.05; font-size: 1.02rem; }
.brand small { font-weight: 500; color: var(--blue); font-size: .85rem; }
.brand-mark { width: 30px; height: 30px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.brand-mark { background: linear-gradient(var(--blue),var(--blue)) 0 0/13.5px 13.5px no-repeat, linear-gradient(var(--sky-2),var(--sky-2)) 100% 0/13.5px 13.5px no-repeat, linear-gradient(var(--sky-2),var(--sky-2)) 0 100%/13.5px 13.5px no-repeat, linear-gradient(var(--blue),var(--blue)) 100% 100%/13.5px 13.5px no-repeat; }
.nav-toggle { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .95rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; gap: .2rem; }
.site-nav.open { display: flex; }
.site-nav a { text-decoration: none; color: var(--text); padding: .55rem 0; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.site-nav .btn { color: #fff; box-shadow: none; text-align: center; margin-top: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius); background: var(--blue); color: #fff; border: 2px solid var(--blue); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--blue-dark); border-color: var(--blue); }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; margin: 1rem 0 .5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Home hero: copy on blueprint grid + tile wall of real photos */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; }
.hero-note { margin-top: 1rem; color: var(--mist); font-size: .95rem; }
.tile-wall { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; background: var(--white); border: 1px solid var(--line); height: clamp(340px, 52vw, 520px); }
.tile-wall figure { margin: 0; overflow: hidden; background: var(--sky-2); }
.tile-wall img { width: 100%; height: 100%; object-fit: cover; }
.tile-wall .t1 { grid-row: 1 / 3; }
.tile-wall .t2 { grid-column: 2; grid-row: 1; }
.tile-wall .t3 { grid-column: 2; grid-row: 2; }
.tile-wall .t4 { grid-column: 3; grid-row: 1 / 3; }
@media (prefers-reduced-motion: no-preference) {
  .tile-wall figure { animation: lay .7s cubic-bezier(.2,.7,.2,1) both; }
  .tile-wall .t2 { animation-delay: .08s; } .tile-wall .t3 { animation-delay: .16s; } .tile-wall .t4 { animation-delay: .24s; }
  @keyframes lay { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Inner page hero */
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.page-hero-inner.has-photo { display: grid; gap: 2rem; align-items: center; }
.hero-photo { margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); }
.hero-photo img { width: 100%; height: clamp(240px, 34vw, 400px); object-fit: cover; }
.crumbs { font-size: .9rem; color: var(--mist); margin-bottom: .75rem; }
.crumbs a { color: var(--mist); }

/* Section heading row */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--mist); }

/* Services: rows with a photo "tile" */
.svc-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.svc img { width: 84px; height: 84px; object-fit: cover; border: 4px solid var(--white); outline: 1px solid var(--line); }
.svc strong { display: block; color: var(--ink); font-stretch: 110%; font-size: 1.12rem; }
.svc span span { color: var(--mist); }
.svc:hover strong { color: var(--blue); }

.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 2.5rem; }
.svc-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.svc-item h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.svc-item p { margin-bottom: .35rem; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.4rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: .95rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; border-radius: 4px; font-size: .9rem; }
.mini-steps { padding-left: 1.2rem; margin: .5rem 0 0; }
.mini-steps li { margin-bottom: .3rem; }

/* Projects */
.project-strip { display: grid; gap: 1.25rem; }
.proj { text-decoration: none; color: var(--text); display: block; }
.proj img { width: 100%; height: 280px; object-fit: cover; border: 6px solid var(--white); outline: 1px solid var(--line); }
.proj span { display: block; padding-top: .7rem; color: var(--mist); }
.proj strong { display: block; color: var(--ink); font-stretch: 110%; font-size: 1.1rem; }
.proj:hover strong { color: var(--blue); }
.projects { display: grid; gap: 3rem; }
.project { scroll-margin-top: 90px; }
.project-head { max-width: 65ch; }
.project-loc { color: var(--blue); font-weight: 600; margin-bottom: .3rem; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 1.25rem; }
.photo-row figure { margin: 0; background: var(--sky); padding: 6px; border: 1px solid var(--line); }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-row figcaption { font-size: .82rem; color: var(--mist); padding: .45rem .2rem .1rem; line-height: 1.4; }

/* Two column layouts */
.two-col { display: grid; gap: 2.5rem; align-items: start; }
.side-card { background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.side-title { font-weight: 750; font-stretch: 112%; color: var(--ink); font-size: 1.15rem; margin-bottom: .4rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .75rem; height: .75rem; background: var(--blue); border-radius: 2px; }

/* FAQ */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: .6rem 0; }
details.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: .9rem 1rem; list-style: none; position: relative; padding-right: 2.5rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .75rem; font-size: 1.3rem; color: var(--blue); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding: 0 1rem 1rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--sky-2); border-top: 1px solid var(--line); padding: clamp(2.25rem, 5vw, 3.25rem) 0; }
.cta-inner { display: grid; gap: 1.25rem; align-items: center; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { margin: 0; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.contact-card { display: block; background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--text); }
.contact-card strong { display: block; color: var(--ink); }
a.contact-card:hover { border-color: var(--blue); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .85rem; border: 1px solid #a9c6df; border-radius: var(--radius); width: 100%; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--sky-2); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #9b1c1c; }

/* Footer */
.site-footer { background: var(--sky); border-top: 1px solid var(--line); padding: 3rem 0 0; color: var(--text); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font-weight: 800; font-stretch: 115%; color: var(--ink); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-head { font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.footer-base { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1rem 0 5rem; }

/* Mobile contact bar */
.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(18,48,74,.08); }
.contact-bar a { text-align: center; padding: .85rem .5rem; font-weight: 700; text-decoration: none; color: var(--blue); }
.contact-bar a:first-child { background: var(--blue); color: #fff; }

@media (min-width: 720px) {
  .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .svc-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .project-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .cta-inner { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1.05fr; }
  .page-hero-inner.has-photo { grid-template-columns: 1.3fr 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr) 320px; }
  .two-col > .prose + .prose { max-width: none; }
  .section-sky .two-col { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 3.2rem 1rem 1rem; }
  .steps li::before { top: 1rem; }
  .side-card { position: sticky; top: 90px; }
}
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: .95rem; padding: 0; border: 0; background: none; }
  .site-nav a { padding: .4rem 0; font-size: .97rem; }
  .site-nav .btn { margin: 0 0 0 .25rem; }
  .contact-bar { display: none; }
  .footer-base { padding-bottom: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Related services links (added 2026-10-26) */
.related-sec { padding-top: 0; }
.related-head { font-size: 1.15rem; margin: 0 0 .75rem; }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.related a { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--text); text-decoration: none; border-radius: 999px; font-size: .95rem; }
.related a:hover, .related a:focus-visible { border-color: var(--blue); color: var(--blue); }
