/*
Theme Name: Đồng Phát
Author: Đồng Phát
Description: Giao diện tiếng Việt dành cho dịch vụ thi công đá mài, đá rửa.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: stonecraft
*/
:root{--ink:#243d33;--paper:#f6f5ef;--muted:#697269;--line:#d9ddd3;--accent:#dbe8bd}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a07e32;outline-offset:4px}.wrap{width:min(1280px,90%);margin:auto}.topline{background:var(--ink);color:#eef2e9;font-size:12px;padding:8px 0;letter-spacing:.08em}.topline .wrap{display:flex;justify-content:space-between}header{background:var(--paper);border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:98px}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:700;letter-spacing:-1px}.mark{border:1px solid var(--ink);width:39px;height:43px;display:grid;place-items:center;font-family:Georgia,serif;font-size:29px}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:400}.navlinks{display:flex;gap:27px;font-size:14px}.button{display:inline-flex;justify-content:center;align-items:center;gap:25px;padding:14px 24px;background:var(--ink);color:white;border:1px solid var(--ink);cursor:pointer;font-size:14px}.button.light{background:transparent;color:var(--ink)}.button:hover{background:#42604d;color:white}.menu-toggle{display:none}.hero{display:grid;grid-template-columns:1fr 1.04fr;min-height:620px;gap:65px;padding:65px 0 55px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;display:flex;align-items:center;gap:12px}.eyebrow:before{content:'';width:25px;height:1px;background:currentColor}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(42px,4.6vw,68px);line-height:1.13;letter-spacing:-2.5px;font-weight:400;margin:28px 0}h1 em,h2 em{font-family:Georgia,serif;font-weight:400}p{color:var(--muted)}.hero p{max-width:440px}.actions{display:flex;gap:12px;margin:32px 0}.hero-note{border-top:1px solid var(--line);padding-top:22px;font-size:13px;display:flex;gap:25px}.hero-visual{position:relative;min-height:500px;background:#d5d7c9;overflow:hidden}.hero-visual img{width:100%;height:100%;object-fit:cover;position:absolute}.image-label{position:absolute;bottom:20px;left:20px;right:20px;background:#f6f5efed;padding:18px 22px;display:flex;justify-content:space-between;font-size:13px}.image-label b{display:block;font-size:17px}.vertical-label{position:absolute;right:16px;top:20px;background:#f6f5ef;padding:6px 12px;font-size:11px;letter-spacing:2px}.strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}.strip .wrap{display:flex;justify-content:space-between;gap:20px;font-size:14px}.strip span:before{content:'✧';margin-right:12px}section{padding:85px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:35px}h2{font-size:clamp(32px,3vw,45px);line-height:1.2;font-weight:400;letter-spacing:-1px;margin:18px 0 0}.section-head p{max-width:340px;font-size:14px;margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.service{border-bottom:1px solid var(--line);padding-bottom:22px}.texture{height:225px;background-color:#ddd8c9;position:relative;overflow:hidden}.texture:after{content:'';position:absolute;inset:0;opacity:.7;background-image:radial-gradient(ellipse at 12% 20%,#a29d8e 0 3px,transparent 4px),radial-gradient(ellipse at 40% 62%,#fff 0 5px,transparent 6px),radial-gradient(ellipse at 70% 32%,#777c6c 0 3px,transparent 4px),radial-gradient(ellipse at 82% 81%,#b7ac91 0 6px,transparent 7px);background-size:43px 37px,63px 57px,53px 41px,71px 67px;transform:rotate(-9deg) scale(1.2)}.texture.washed{background:#979889}.texture.washed:after{background-size:14px 15px,19px 22px,23px 21px,17px 27px}.texture.terrazzo{background:#e9daca}.texture.terrazzo:after{background-size:77px 63px,43px 87px,89px 61px,61px 79px}.service h3{font-size:23px;font-weight:400;margin:21px 0 8px;display:flex;justify-content:space-between}.service p{font-size:14px}.text-link{font-size:13px;border-bottom:1px solid;padding-bottom:4px}.process{background:var(--ink);color:var(--paper)}.process p{color:#c0cbbf}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-top:45px}.step{border-top:1px solid #65766a;padding-top:22px}.step span{color:#c6d7a8;font-family:Georgia,serif;font-size:36px}.step h3{font-size:19px;margin:20px 0 12px;font-weight:400}.step p{font-size:14px}.projects img{width:100%;height:330px;object-fit:cover}.projects{display:grid;grid-template-columns:1.3fr 1fr;gap:28px}.projects h3{font-size:19px;margin:16px 0 5px;font-weight:400}.projects p{font-size:13px}.contact{border-top:1px solid var(--line)}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.contact h2{margin-bottom:25px}.contact-details{margin-top:32px}.contact-details a{font-size:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-size:13px;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #c9cfc3;background:transparent;padding:12px;color:var(--ink);border-radius:0}textarea{resize:vertical;min-height:100px}.full{grid-column:1/-1}.privacy{font-size:12px;margin:12px 0}.notice{padding:15px;background:#e2eacb;margin-bottom:20px}footer{background:#eaece3;padding:30px 0;font-size:12px}footer .wrap{display:flex;justify-content:space-between;gap:25px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;padding:12px;z-index:9}.article{max-width:850px;margin:auto;padding:70px 25px}.article img{max-width:100%;height:auto}@media(max-width:900px){.navlinks{gap:15px}.nav>.button{display:none}.hero{gap:30px}h1{font-size:45px}.hero-note{flex-direction:column;gap:6px}.contact-grid{gap:40px}}@media(max-width:650px){.topline .wrap span:last-child{display:none}.nav{min-height:78px;flex-wrap:wrap;gap:0}.brand{font-size:20px}.menu-toggle{display:block;border:1px solid var(--line);padding:8px 12px;background:none;color:var(--ink)}.navlinks{display:none;width:100%;padding:20px 0;flex-direction:column}.navlinks.open{display:flex}.hero{grid-template-columns:1fr;padding-top:35px;gap:20px}.hero-visual{min-height:390px}h1{font-size:48px}.hero-note{flex-direction:row;flex-wrap:wrap;gap:15px}.strip .wrap{display:grid;grid-template-columns:1fr 1fr;font-size:12px}.section-head{display:block}.section-head p{margin-top:20px}.grid,.projects,.contact-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.texture{height:250px}section{padding:55px 0}.contact-grid{gap:30px}.actions{flex-wrap:wrap}footer .wrap{flex-direction:column}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Vietnamese typography: local system fonts, no external font request. */
body{font-family:"Segoe UI",Arial,"Helvetica Neue",sans-serif;line-height:1.75}h1,h2,h3,.brand,.mark,.step span{font-family:inherit;letter-spacing:normal}h1,h2{line-height:1.3;font-weight:500}h1 em,h2 em{font-family:inherit;font-style:normal;font-weight:500}input,select,textarea,button{font-family:inherit}.eyebrow,.topline{letter-spacing:.06em}.material-image{display:block;width:100%;height:225px;object-fit:cover}.service h3{gap:12px}.service h3 span{flex-shrink:0}@media(max-width:650px){.material-image{height:250px}h1{font-size:42px}}

/* 1.2: readable type scale and service navigation. */
body{font-size:1.125rem;line-height:1.8}
h1{font-size:clamp(2.5rem,4.4vw,4rem);line-height:1.22}h2{font-size:clamp(2rem,3.1vw,3rem);line-height:1.3}
.navlinks,.button,.text-link,label{font-size:1.0625rem}.navlinks{align-items:center;gap:22px}.nav{gap:22px}
.service p,.section-head p,.step p,.projects p{font-size:1.0625rem}.service h3,.projects h3,.step h3{font-size:1.5rem;line-height:1.45}
.eyebrow,.topline,.hero-note,.strip .wrap,.image-label,.privacy,footer{font-size:.9375rem}.brand{font-size:1.75rem}.brand small{font-size:.75rem}.vertical-label{font-size:.8125rem}
.section-head p{max-width:420px}.hero p{max-width:500px}.hero{gap:45px}.article{max-width:900px}.article h1{font-size:clamp(2rem,4vw,3.25rem);overflow-wrap:anywhere}.article p,.article li{font-size:1.125rem}.home-services{border-top:1px solid var(--line)}
.service-nav{position:relative;display:flex;align-items:center;gap:2px}.submenu-toggle{border:0;background:transparent;color:inherit;font-size:1.25rem;min-width:44px;min-height:44px;cursor:pointer}.submenu{position:absolute;top:100%;left:0;z-index:20;width:320px;max-width:85vw;max-height:65vh;overflow:auto;margin:0;padding:8px;list-style:none;background:var(--paper);border:1px solid var(--line);box-shadow:0 12px 30px #243d331a}.submenu[hidden]{display:none}.submenu a{display:block;padding:12px 14px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.submenu a:hover,.submenu a:focus-visible{background:#e4e9da}
@media(max-width:1150px){.nav>.button{display:none}.navlinks{gap:18px}}
@media(max-width:800px){.nav{flex-wrap:wrap;min-height:85px}.menu-toggle{display:block;border:1px solid var(--line);padding:8px 12px;background:none;color:var(--ink)}.navlinks{display:none;width:100%;padding:15px 0;flex-direction:column;align-items:stretch;gap:12px}.navlinks.open{display:flex}.service-nav{flex-wrap:wrap;justify-content:space-between}.submenu{position:static;width:100%;max-width:none;max-height:50vh;box-shadow:none}.hero{grid-template-columns:1fr;gap:25px}.hero-visual{min-height:420px}.steps{grid-template-columns:1fr 1fr}}
@media(max-width:650px){body{font-size:1.0625rem}h1{font-size:2.5rem}.strip .wrap{font-size:.9375rem}.topline{font-size:.8125rem}.image-label{font-size:.875rem}.brand{font-size:1.5rem}.contact-grid{gap:36px}.grid{gap:36px}}

/* 1.3: contemporary hero typography. */
.hero-title{font-family:"Segoe UI Variable Display","Segoe UI",Arial,sans-serif;font-size:clamp(2.625rem,4.2vw,4.25rem);font-weight:600;line-height:1.2;letter-spacing:-.035em;margin:28px 0 30px}.hero-title span{display:block}.hero-title .hero-title-accent{font-weight:300;color:#62745d;letter-spacing:-.025em}.hero-visual img{object-position:center center}@media(max-width:650px){.hero-title{font-size:clamp(2.25rem,9vw,3.25rem);line-height:1.22}}

/* Mobile contact bar with room for device safe area. */
.mobile-contact{display:none}
@media(max-width:800px){
 body{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 html{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 .mobile-contact{display:grid;grid-template-columns:1fr 1fr;position:fixed;bottom:0;left:0;right:0;z-index:50;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -4px 20px #243d3314}
 .mobile-contact a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:60px;padding:8px;border-radius:6px;color:#fff;font-size:1rem;font-weight:600;line-height:1.4}
 .mobile-contact svg{flex-shrink:0}.mobile-contact small{display:block;font-size:.8125rem;font-weight:400}
 .mobile-hotline{background:var(--ink)}.mobile-zalo{background:#0068d8}
 .mobile-contact a:focus-visible{outline-offset:2px}.mobile-contact a:hover{filter:brightness(.92)}
 body:has(input:focus,textarea:focus,select:focus) .mobile-contact{display:none}
}
