/* Alex Wilson Construction - basic company website */
:root {
  --blue: #183b58;
  --dark-blue: #102b40;
  --red: #a43d2d;
  --light-gray: #f1f1ef;
  --border: #ccccca;
  --text: #333;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
.wrap { width: 960px; max-width: calc(100% - 30px); margin: 0 auto; }
.section { padding-top: 50px; padding-bottom: 50px; }
h1, h2, h3 { color: #222; font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
h2 { margin: 0 0 8px; color: var(--blue); font-size: 28px; font-weight: normal; }
h3 { margin-top: 0; }
p { margin-top: 0; }
.section-intro { margin-bottom: 26px; color: #666; }

.top-line { padding: 5px 0; color: #ddd; background: #292929; font-size: 11px; text-align: right; }
.header-main { display: flex; min-height: 105px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none; }
.logo-aw { display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid var(--blue); font-family: Georgia, serif; font-size: 24px; font-weight: bold; }
.logo-words { display: flex; flex-direction: column; line-height: 1.05; }
.logo-words strong { font-family: Georgia, serif; font-size: 25px; }
.logo-words small { margin-top: 5px; color: #555; font-size: 11px; font-weight: bold; letter-spacing: 3px; }
.header-contact { text-align: right; }
.header-contact small { display: block; color: #777; font-size: 12px; }
.header-contact a { color: var(--red); font-family: Georgia, serif; font-size: 24px; font-weight: bold; text-decoration: none; }

.main-nav { background: var(--blue); }
.nav-links { display: flex; }
.nav-links a { padding: 13px 25px; border-right: 1px solid #426078; color: #fff; font-size: 13px; font-weight: bold; text-decoration: none; }
.nav-links a:first-child { border-left: 1px solid #426078; }
.nav-links a:hover { background: var(--dark-blue); }
.menu-button { display: none; }

.hero { position: relative; height: 390px; max-width: 1200px; overflow: hidden; padding: 0; background: #ddd; }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero-box { position: absolute; top: 54px; left: 46px; width: 390px; padding: 25px 28px 28px; border: 1px solid #aaa; background: rgba(255,255,255,.93); box-shadow: 0 2px 7px rgba(0,0,0,.25); }
.hero-box h1 { margin: 0 0 12px; color: var(--blue); font-size: 37px; font-weight: normal; }
.hero-box p { margin-bottom: 22px; color: #555; font-size: 16px; }
.red-button { display: inline-block; padding: 11px 19px; border: 0; border-radius: 2px; color: #fff; background: var(--red); font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; text-decoration: none; cursor: pointer; }
.red-button:hover { background: #823025; }

.welcome { display: grid; grid-template-columns: 1fr 285px; gap: 55px; }
.welcome-main .lead { margin-bottom: 12px; color: #555; font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.plain-link { font-weight: bold; }
.estimate-box { align-self: start; padding: 22px; border: 1px solid #bbb; background: var(--light-gray); }
.estimate-box h3 { margin-bottom: 10px; color: var(--blue); font-size: 21px; }
.estimate-box strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 21px; }
.estimate-box span { color: #777; font-size: 11px; }

.services-section { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: var(--light-gray); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-grid article { min-height: 210px; padding: 20px 17px; border: 1px solid var(--border); background: #fff; }
.service-icon { display: grid; width: 37px; height: 37px; margin-bottom: 14px; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-family: Georgia, serif; font-weight: bold; }
.service-grid h3 { margin-bottom: 8px; color: var(--blue); font-size: 18px; }
.service-grid p { color: #666; font-size: 13px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-grid article { border: 1px solid #bbb; background: var(--light-gray); }
.project-grid img { width: 100%; aspect-ratio: 4 / 3; border-bottom: 1px solid #bbb; object-fit: cover; }
.project-grid article > div { padding: 12px 14px; }
.project-grid h3 { margin: 0 0 2px; color: var(--blue); font-family: Arial, sans-serif; font-size: 15px; }
.project-grid p { margin: 0; color: #777; font-size: 12px; }

.about-section { border-top: 1px solid #ddd; background: #f5f5f3; }
.about-grid { display: grid; grid-template-columns: 1fr 315px; gap: 55px; }
.why-box { padding: 22px 25px; border: 1px solid #bdbdb9; background: #fff; }
.why-box h3 { padding-bottom: 9px; border-bottom: 1px solid #ccc; color: var(--blue); font-size: 21px; }
.why-box ul { margin: 0; padding-left: 21px; }
.why-box li { margin: 9px 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
.contact-form { padding: 24px; border: 1px solid #ccc; background: #f7f7f6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 14px; color: #444; font-size: 12px; font-weight: bold; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #aaa; border-radius: 2px; background: #fff; font: 14px Arial, sans-serif; }
.contact-form textarea { resize: vertical; }
.form-note { display: inline; margin-left: 8px; color: #777; font-size: 10px; }
.contact-info { align-self: start; padding: 22px; border: 1px solid #bbb; background: var(--light-gray); }
.contact-info h3 { color: var(--blue); font-size: 20px; }
.contact-info p { padding-bottom: 13px; border-bottom: 1px solid #ccc; }
.contact-info a { font-weight: bold; }
.contact-info small { color: #777; }

.footer { color: #bbb; background: #292929; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 70px; padding-top: 38px; padding-bottom: 38px; }
.footer-grid > div { display: flex; align-items: flex-start; flex-direction: column; }
.footer-grid > div > strong { margin-bottom: 8px; color: #fff; font-family: Georgia, serif; font-size: 16px; }
.footer-grid a, .footer-grid span { color: #bbb; font-size: 12px; line-height: 1.8; }
.footer-logo strong { margin: 0 !important; font-size: 25px !important; }
.footer-logo span { letter-spacing: 3px; }
.copyright { padding: 13px 0; color: #888; background: #1d1d1d; font-size: 10px; }

@media (max-width: 700px) {
  .section { padding-top: 38px; padding-bottom: 38px; }
  .top-line { text-align: center; }
  .header-main { min-height: 88px; }
  .logo-aw { width: 46px; height: 46px; font-size: 19px; }
  .logo-words strong { font-size: 18px; }
  .logo-words small { font-size: 8px; letter-spacing: 2px; }
  .header-contact small { display: none; }
  .header-contact a { font-family: Arial, sans-serif; font-size: 13px; }
  .menu-button { display: block; width: 100%; padding: 11px 0; border: 0; color: #fff; background: var(--blue); font-size: 13px; font-weight: bold; text-align: left; }
  .nav-links { display: none; padding-bottom: 8px; }
  .nav-links.is-open { display: block; }
  .nav-links a { display: block; padding: 10px 5px; border-right: 0; border-bottom: 1px solid #426078; }
  .nav-links a:first-child { border-left: 0; }
  .hero { height: auto; max-width: 100%; }
  .hero > img { height: 240px; }
  .hero-box { position: static; width: 100%; padding: 22px max(15px, calc((100% - 960px) / 2)); border: 0; border-bottom: 1px solid #ccc; box-shadow: none; }
  .hero-box h1 { font-size: 29px; }
  .welcome, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid article { min-height: 190px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid article { display: grid; grid-template-columns: 44% 56%; }
  .project-grid img { height: 100%; border-right: 1px solid #bbb; border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-note { display: block; margin: 8px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .header-contact { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
