const { Header, Card, Button, Input, Select } = window.AcornTitleDesignSystem_b6a569;
function SiteFooter() {
return (
);
}
const CONTACT_EMAIL = 'info@acorn-title.com';
const CONTACT_PHONE = '(210) 465-3033';
const CONTACT_PHONE_TEL = 'tel:+12104653033';
const CONTACT_ADDRESS_LINES = ['1100 NW Loop 410', 'Castle Hills, TX 78213'];
const logoSizeOverride = ;
function AppQuickLink() {
React.useEffect(() => {
const header = document.querySelector('header');
if (!header) return;
const rightGroup = header.querySelector(':scope > div > div:last-child');
if (!rightGroup || rightGroup.querySelector('.app-quick-link')) return;
const a = document.createElement('a');
a.href = 'https://app.acorn-title.com';
a.target = '_blank';
a.rel = 'noopener';
a.className = 'app-quick-link';
a.setAttribute('aria-label', 'Open the Acorn App');
a.style.cssText = 'display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;color:inherit';
a.innerHTML = '';
rightGroup.insertBefore(a, rightGroup.firstChild);
return () => a.remove();
}, []);
return null;
}
function LogoHomeLink() {
React.useEffect(() => {
const header = document.querySelector('header');
if (!header) return;
const img = header.querySelector('img[alt="Acorn Title"]');
if (!img || img.closest('a')) return;
const a = document.createElement('a');
a.href = 'Acorn Homepage.html';
a.setAttribute('aria-label', 'Acorn Title home');
a.style.cssText = 'display:flex;align-items:center';
img.parentNode.insertBefore(a, img);
a.appendChild(img);
return () => {
if (a.parentNode) { a.parentNode.insertBefore(img, a); a.remove(); }
};
}, []);
return null;
}
const headerLinks = () => [
{ label: 'Home', href: 'Acorn Homepage.html' },
{ label: 'Buying', href: 'Buying.html' },
{ label: 'Selling', href: 'Selling.html' },
{ label: 'For Professionals', href: 'For Professionals.html' },
{ label: 'About', href: 'About.html' },
{ label: 'Contact', href: '#' },
];
function Eyebrow({ children }) {
return
{children}
;
}
function H2({ children, align = 'left', style }) {
return {children}
;
}
function Section({ children, background, id, pad }) {
return ;
}
function Hero() {
return (
{ window.location.href = 'Order Title.html'; }} />
We're Here. What Can We Help With?
Whether you're in the middle of a closing, getting ready to start one, or simply have a question, we're easy to reach.
);
}
function PathCard({ eyebrow, title, copy, cta, onClick, href }) {
const ctaStyle = { fontFamily: 'var(--font-body)', fontWeight: 600, fontSize: 15, color: 'var(--blue-600)', background: 'none', border: 'none', padding: 0, cursor: 'pointer', textDecoration: 'none' };
return (
{title}
{copy}
{href
?
{cta}
:
}
);
}
function QuickDirection({ onScrollForm }) {
return (
Quick direction
Maybe We Can Get You There Faster.
Not everything needs a contact form.
{ window.location.href = 'Order Title.html'; }} />
);
}
const inquiryOptions = [
{ value: '', label: 'Select one' },
{ value: 'starting', label: 'Starting a Closing' },
{ value: 'existing', label: 'An Existing Closing' },
{ value: 'buying', label: 'Buying a Home' },
{ value: 'selling', label: 'Selling a Home' },
{ value: 'professional', label: 'Professional / Business Inquiry' },
{ value: 'other', label: 'Something Else' },
];
const requiredFriendly = {
name: 'Please share your name.',
email: 'Please enter an email address so we can reach you.',
inquiry: "Please let us know what you're reaching out about.",
message: "Please include a short message so we know how to help.",
};
const textareaStyle = {
width: '100%', padding: '12px 14px', borderRadius: 'var(--radius-sm)', border: '1px solid var(--border-default)',
fontFamily: 'var(--font-body)', fontSize: 15, background: '#fff', color: 'var(--text-heading)',
outline: 'none', boxSizing: 'border-box', minHeight: 130, resize: 'vertical',
transition: 'box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard)',
};
function focusIn(e) { e.target.style.borderColor = 'var(--brand-primary)'; e.target.style.boxShadow = '0 0 0 3px var(--blue-100)'; }
function focusOut(e) { e.target.style.borderColor = 'var(--border-default)'; e.target.style.boxShadow = 'none'; }
function ContactForm({ onSubmitted }) {
const [data, setData] = React.useState({ name: '', email: '', phone: '', inquiry: '', propertyAddress: '', message: '' });
const [errors, setErrors] = React.useState({});
const [submitting, setSubmitting] = React.useState(false);
const [submitError, setSubmitError] = React.useState('');
const fieldRefs = React.useRef({});
const set = (k) => (e) => setData((d) => ({ ...d, [k]: e.target.value }));
const reg = (k) => (el) => { fieldRefs.current[k] = el; };
const handleSubmit = (e) => {
e.preventDefault();
if (submitting) return;
const next = {};
Object.keys(requiredFriendly).forEach((k) => { if (!String(data[k]).trim()) next[k] = requiredFriendly[k]; });
setErrors(next);
const firstKey = Object.keys(requiredFriendly).find((k) => next[k]);
if (firstKey) { fieldRefs.current[firstKey]?.scrollIntoView({ behavior: 'smooth', block: 'center' }); return; }
setSubmitting(true);
setSubmitError('');
const form = new FormData();
form.append('form_type', 'contact');
Object.entries(data).forEach(([k, v]) => form.append(k, v));
fetch('submit-form.php', { method: 'POST', body: form })
.then((r) => r.json())
.then((res) => { setSubmitting(false); if (res.success) { onSubmitted(); } else { setSubmitError(res.message || 'Something went wrong. Please try again.'); } })
.catch(() => { setSubmitting(false); setSubmitError('Something went wrong. Please try again or reach us by phone.'); });
};
const showProperty = data.inquiry === 'existing';
return (
);
}
function ContactConfirmation({ onReset }) {
return (
We've Got It.
Your message is on its way to the Acorn team. We'll make sure it reaches the right person and get back to you as soon as we can.
);
}
function ContactFormSection() {
const [submitted, setSubmitted] = React.useState(false);
React.useEffect(() => {
if (submitted) document.getElementById('contact-form')?.scrollIntoView({ behavior: 'smooth', block: 'start' });
}, [submitted]);
return (
);
}
function VisitSection() {
const mapsUrl = 'https://maps.google.com/?q=' + encodeURIComponent(CONTACT_ADDRESS_LINES.join(', '));
return (
Visit us
Come See Us.
Closing with us in person? We'll make sure your appointment is set, and you know exactly where to go and what to expect before you arrive.
Acorn Title
{CONTACT_ADDRESS_LINES[0]}
{CONTACT_ADDRESS_LINES[1]}
{CONTACT_PHONE}
{CONTACT_EMAIL}
Monday – Friday, 9:00 AM – 5:00 PM
);
}
function ClosingSection() {
return (
Questions Are Welcome Here.
Big question, small question, first closing or fiftieth. If we can help make something clearer, just ask.
We'll help you figure out what comes next.
);
}
function ContactPage() {
const scrollTo = (id) => document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });
return (
{logoSizeOverride}
scrollTo('contact-form')} />
);
}
window.ContactPage = ContactPage;