/*
Theme Name: d-king-drywall-modern
Text Domain: d-king-drywall-modern
Description: A modern, image-led theme for D. King Drywall Inc.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
  --ink: #202124;
  --ink-soft: #4b4d4f;
  --paper: #f7f7f5;
  --white: #fff;
  --line: #deded9;
  --brand: #1f5f8b;
  --brand-dark: #17466a;
  --brand-pale: #eaf2f7;
  --gold: #b08a3c;
  --gold-pale: #f5f0e3;
  --charcoal: #202326;
  --blue-border: #c8dbe8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(32,35,38,.10); backdrop-filter: blur(12px); }
.nav-wrap { max-width: 1320px; margin: auto; padding: 13px 30px; display: flex; align-items: center; gap: 0; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand-logo { width: 205px; height: auto; max-height: 62px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--brand-dark); }
.nav-cta, .mobile-cta { background: var(--brand); color: #fff !important; padding: 12px 18px; border-radius: 2px; }
.nav-wrap > .nav-cta { margin-left: 10px; }
.nav-cta:hover, .mobile-cta:hover { background: var(--brand-dark); }
.header-social { display: flex !important; align-items: center; gap: 5px; flex: 0 0 auto; margin-left: 8px; }
.social-link { width: 34px; height: 34px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--brand-dark) !important; background: var(--gold-pale); text-decoration: none; transition: .2s ease; }
.social-link:hover { background: var(--brand); border-color: var(--brand); color: white; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.social-link svg rect { fill: none; }
.mobile-cta { display: none; text-decoration: none; font-size: 12px; font-weight: 700; }
.social-links { display: flex; align-items: center; gap: 7px; margin-left: 2px; }
.social-links a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-dark); border: 1px solid var(--blue-border); background: var(--brand-pale); border-radius: 50%; text-decoration: none; transition: .2s ease; }
.social-links a:hover { color: var(--brand-dark); background: var(--gold-pale); border-color: var(--gold); transform: translateY(-1px); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }
.social-links svg circle, .social-links svg rect { fill: none; stroke: currentColor; stroke-width: 2; }
.social-links svg circle:last-child { fill: currentColor; stroke: none; }

.container { max-width: 1240px; margin: auto; padding-left: 28px; padding-right: 28px; }

/* Hero slider */
.hero-slider { position: relative; height: min(760px, calc(100vh - 88px)); min-height: 590px; overflow: hidden; background: var(--charcoal); color: white; }
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 30s infinite; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,17,.76) 0%, rgba(13,15,17,.34) 48%, rgba(13,15,17,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.03) 55%); }
.hero-content { position: absolute; z-index: 2; left: max(28px, calc((100vw - 1240px)/2 + 28px)); bottom: 58px; max-width: 690px; }
.hero-kicker { display: inline-block; background: var(--gold); color: #fff; padding: 7px 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 18px; }
.hero-content h1 { margin: 0 0 14px; font: 600 clamp(48px, 6.3vw, 88px)/.95 var(--serif); letter-spacing: -.055em; }
.hero-content p { margin: 0 0 25px; max-width: 590px; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.91); }
.hero-note { position: absolute; z-index: 3; right: 30px; bottom: 27px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-dots { position: absolute; z-index: 3; right: 30px; bottom: 58px; display: flex; gap: 7px; }
.hero-dots span { width: 28px; height: 3px; background: rgba(255,255,255,.42); }

@keyframes heroFade {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 14px 21px; border: 1px solid var(--brand); font-size: 13px; font-weight: 800; transition: .2s ease; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.75); color: white; }
.btn-light:hover { background: white; border-color: white; color: var(--ink); }

/* Homepage information blocks */
.trust-strip { background: var(--brand); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-item { padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.28); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font: 600 25px var(--serif); }
.trust-item span { display: block; font-size: 12px; margin-top: 4px; opacity: .88; }

.section { padding: 100px 0; }
.about h2 { font-size: clamp(38px, 4.15vw, 56px); }
.section-head { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 48px; }
.eyebrow { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; margin-bottom: 13px; }
h2 { font: 600 clamp(40px, 5vw, 66px)/1 var(--serif); letter-spacing: -.045em; margin: 0; }
.about h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: .98; }
.section-head p { max-width: 480px; color: var(--ink-soft); margin: 0; font-size: 16px; }

.about { background: white; }
.about-grid { display: grid !important; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px 70px; align-items: start !important; }
.about-grid > div:first-child { grid-column: 1; grid-row: 1; max-width: none; align-self: start; }
.about-copy { grid-column: 2; grid-row: 1; align-self: start; display: block; }
.about-copy p { color: var(--ink-soft); font-size: 17px; margin: 0 0 24px; }
.about-callout { margin-top: 8px; padding: 24px; border-left: 4px solid var(--gold); background: var(--gold-pale); font-weight: 700; }
.about-photo { margin: 24px 0 0; background: #eee; width: 100%; }
.about-photo img { width: 100%; height: auto; }
.about-photo figcaption { padding: 10px 0 0; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.about-stats { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 12px; border-top: 1px solid var(--line); }
.about-stat { padding: 23px 18px 0 0; }
.about-stat strong { display: block; font: 600 36px var(--serif); color: var(--gold); }
.about-stat span { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }

.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.service-card { padding: 31px 30px 34px 0; border-bottom: 1px solid var(--line); min-height: 215px; }
.service-card:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.service-number { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.service-card h3 { font: 600 27px/1.1 var(--serif); margin: 23px 0 11px; }
.service-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

.home-projects { background: var(--charcoal); color: white; }
.home-projects .section-head p { color: #c6c8c9; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.project-card { position: relative; overflow: hidden; min-height: 350px; background: #303438; }
.project-card.tall { min-height: 510px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.82)); padding-top: 70px; }
.project-overlay strong { display: block; font: 600 24px var(--serif); }
.project-overlay span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.project-more { margin-top: 28px; }

.experience { background: white; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.experience p { color: var(--ink-soft); font-size: 17px; }
.standard-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.standard-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.standard-list li::after { content: '✓'; color: var(--brand-dark); font-weight: 800; }

.area { background: var(--brand-pale); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.area-list span { background: white; border: 1px solid var(--blue-border); padding: 9px 13px; font-size: 12px; }

.contact { background: var(--charcoal); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 90px; align-items: start; }
.contact h2 { max-width: 690px; }
.contact-intro { color: #c7c9ca; max-width: 610px; font-size: 17px; }
.contact-details { margin-top: 35px; border-top: 1px solid #4b4f52; }
.contact-details a { display: block; padding: 16px 0; border-bottom: 1px solid #4b4f52; text-decoration: none; font: 500 23px var(--serif); }
.contact-details a:hover { color: var(--gold); }
.form-card { background: white; color: var(--ink); padding: 28px; }
.form-card h3 { font: 600 28px var(--serif); margin: 0 0 7px; }
.form-card p { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #d6d6d2; padding: 12px; background: #fbfbfa; color: var(--ink); }
.form-field textarea { min-height: 125px; resize: vertical; }
.form-submit { width: 100%; border: 0; cursor: pointer; }
.form-notice { padding: 11px 13px; background: var(--brand-pale); margin-bottom: 15px; font-size: 13px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { background: #16181a; color: #cfd1d2; padding: 45px 0 22px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 40px; }
.footer-logo { width: 185px; filter: brightness(0) invert(1); opacity: .96; }
.footer-top p { max-width: 430px; color: #919598; font-size: 13px; margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #363a3d; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; color: #7d8184; font-size: 11px; }

.page-hero { background: var(--charcoal); color: white; padding: 90px 0; }
.page-hero h1 { margin: 0; font: 600 clamp(48px, 6vw, 78px)/.95 var(--serif); letter-spacing: -.05em; }
.page-hero p { max-width: 650px; color: #c9cbcc; font-size: 17px; margin: 18px 0 0; }
.page-shell { max-width: 1240px; margin: auto; padding: 85px 28px; }
.page-shell .entry-content { color: var(--ink-soft); }
.page-shell h2 { margin-bottom: 22px; }
.projects-page-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.gallery-card { position: relative; min-height: 380px; overflow: hidden; background: #ddd; }
.gallery-card.wide { grid-column: span 2; min-height: 480px; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { display: none; }

.contact-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-page-copy p { color: var(--ink-soft); font-size: 17px; }
.contact-page-copy .contact-details { margin-top: 25px; }
.contact-page-copy .contact-details a { color: var(--ink); border-color: var(--line); }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-social { display: flex !important; }
  .nav-wrap > .nav-cta { display: none; }
  .mobile-cta { display: inline-flex; }
  .brand-logo { width: 180px; }
  .hero-slider { min-height: 560px; height: 78svh; }
  .hero-content { left: 24px; right: 24px; bottom: 38px; }
  .hero-note { display: none; }
  .hero-dots { right: 24px; bottom: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .trust-item:last-child { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid > div:first-child, .about-copy { grid-column: 1; grid-row: auto; }
  .about-photo { margin: 24px 0 0; max-width: 620px; }
  .about-callout { margin-top: 8px; }
  .about-stats { margin-top: 12px; }
  .experience-grid, .contact-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 45px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service-card:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.tall { min-height: 420px; }
  .projects-page-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card.wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .nav-wrap, .container { padding-left: 18px; padding-right: 18px; }
  .nav-wrap { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand-logo { width: 145px; }
  .header-social { gap: 5px; flex: 0 0 auto; }
  .social-link { width: 30px; height: 30px; }
  .social-link svg { width: 14px; height: 14px; }
  .mobile-cta { padding: 10px 13px; font-size: 11px; white-space: nowrap; }
  .social-links { gap: 5px; margin-left: auto; }
  .social-links a { width: 31px; height: 31px; }
  .social-links svg { width: 15px; height: 15px; }
  .hero-slider { min-height: 560px; height: 78svh; }
  .hero-content { left: 18px; right: 18px; bottom: 42px; }
  .hero-kicker { padding: 6px 9px; margin-bottom: 13px; font-size: 10px; }
  .hero-content h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-content p { font-size: 15px; line-height: 1.45; margin-bottom: 18px; }
  .actions { display: flex; flex-direction: column; gap: 9px; }
  .actions .btn { width: 100%; }
  .hero-dots { display: none; }
  .section { padding: 62px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head p { margin-top: 16px; }
  h2 { font-size: clamp(35px, 10vw, 48px); }
  .trust-item { padding: 20px 18px; }
  .trust-item strong { font-size: 22px; }
  .service-grid, .projects-page-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(even) { padding: 24px 0; border-left: 0; }
  .service-card h3 { font-size: 25px; }
  .about-copy p { font-size: 16px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-stat { padding-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-links { margin-top: 25px; }
  .footer-bottom span + span { display: block; margin-top: 8px; }
  .gallery-card, .gallery-card.wide { min-height: 330px; grid-column: auto; }
}
