/*
Theme Name: L.D. Goral Bouw
Theme URI: https://ldgoral.store
Author: Pen Punleur
Description: Professional custom WordPress theme for L.D. Goral Bouw B.V.
Version: 1.0.0
Text Domain: ldgoral
*/

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Variables ---------- */
:root {
  --navy: #1B365D;
  --navy-dark: #142845;
  --steel: #4A5568;
  --bg: #F4F7FA;
  --white: #FFFFFF;
  --accent: #E06D53;
  --accent-dark: #c85a41;
  --border: #dbe3ec;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(27, 54, 93, 0.08);
  --shadow-lg: 0 10px 30px rgba(27, 54, 93, 0.12);
}

/* ---------- Typography ---------- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--steel);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }

strong { color: var(--navy); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background-color: var(--white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head p { color: var(--steel); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 14px 30px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover { background-color: var(--white); color: var(--navy); border-color: var(--white); }

.btn-navy { background-color: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background-color: var(--navy-dark); border-color: var(--navy-dark); }

/* ---------- Top info bar ---------- */
.top-bar {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-bar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.top-bar-item { display: inline-flex; align-items: center; gap: 7px; }
.top-bar-item a:hover { color: var(--accent); }
.top-bar-label { color: var(--accent); font-weight: 700; }

/* ---------- Site header ---------- */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-branding { display: flex; align-items: center; gap: 14px; }

.site-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.site-title a:hover { color: var(--accent); }

.site-tagline {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  font-weight: 600;
}

.custom-logo-link img { max-height: 58px; width: auto; }

/* ---------- Navigation ---------- */
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.main-navigation li { position: relative; }

.main-navigation a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background-color: var(--bg);
  color: var(--accent);
}

.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  flex-direction: column;
  z-index: 30;
}

.main-navigation li:hover > ul { display: flex; }

.nav-fallback a { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24487a 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}

.hero h1 { color: var(--white); font-size: 3rem; max-width: 950px; margin: 0 auto 20px; }

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--bg);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.service-card h3 { margin-bottom: 12px; }

.service-list { margin-top: 14px; }

.service-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.section-alt .service-card { background-color: var(--bg); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
}

.about-facts {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.about-facts h3 { color: var(--white); margin-bottom: 18px; }

.about-facts dl { display: grid; gap: 14px; }

.about-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.about-facts dd { margin: 0; color: var(--white); font-weight: 600; }

/* ---------- Contact CTA strip ---------- */
.contact-strip {
  background-color: var(--accent);
  color: var(--white);
  padding: 46px 0;
}

.contact-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-strip h2 { color: var(--white); margin-bottom: 6px; }
.contact-strip p { margin: 0; color: rgba(255, 255, 255, 0.95); }

.contact-strip-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-strip .btn-navy { border-color: var(--navy); }

/* ---------- Contact form ---------- */
.contact-form {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.12);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--steel); }

/* ---------- Content / posts ---------- */
.site-content { padding: 70px 0; }

.entry {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.entry-title { margin-bottom: 12px; }
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.entry-thumbnail { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }

.entry-content h2,
.entry-content h3 { margin: 28px 0 12px; }

.entry-content ul,
.entry-content ol { margin: 0 0 1rem 1.3rem; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }

.entry-content a { color: var(--accent); font-weight: 600; }
.entry-content a:hover { text-decoration: underline; }

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
  color: var(--navy);
  font-style: italic;
}

.entry-footer { margin-top: 24px; font-size: 0.88rem; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

.pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover { background-color: var(--navy); color: var(--white); border-color: var(--navy); }

.post-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 34px; }
.post-navigation a { font-weight: 700; color: var(--navy); }
.post-navigation a:hover { color: var(--accent); }

.comments-area {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.comments-area .comment-list { margin-bottom: 24px; }
.comments-area .comment-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comments-area input, .comments-area textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comments-area input[type="submit"] {
  width: auto;
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  padding: 13px 28px;
}

/* ---------- Sidebar ---------- */
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

.widget-area .widget {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.widget-area .widget-title { font-size: 1.05rem; margin-bottom: 14px; }
.widget-area ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.widget-area ul li:last-child { border-bottom: 0; }
.widget-area a:hover { color: var(--accent); }

.sidebar-card { background-color: var(--navy); color: var(--white); }
.sidebar-card h3, .sidebar-card a { color: var(--white); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 110px 0; }
.error-404 .error-code { font-size: 6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.error-404 p { max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--navy); color: rgba(255, 255, 255, 0.82); padding-top: 70px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 55px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-col p { font-size: 0.95rem; }
.footer-col ul li { padding: 6px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }

.footer-legal { margin-top: 16px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.footer-legal span { display: block; }

.footer-contact li { display: flex; gap: 8px; }
.footer-contact .footer-label { color: var(--accent); font-weight: 700; min-width: 68px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { margin: 0 auto 20px; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .section { padding: 55px 0; }

  .top-bar .container,
  .top-bar-info { flex-direction: column; align-items: flex-start; gap: 6px; }

  .site-header .container { flex-direction: column; align-items: flex-start; }

  .main-navigation { width: 100%; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .main-navigation a { padding: 11px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-navigation ul ul { position: static; box-shadow: none; padding: 0 0 0 14px; display: flex; }

  .hero { padding: 70px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1.02rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .entry, .contact-form, .comments-area { padding: 24px; }

  .contact-strip .container { flex-direction: column; align-items: flex-start; }
  .contact-strip-actions { width: 100%; flex-direction: column; }
  .contact-strip-actions .btn { width: 100%; text-align: center; }

  .error-404 { padding: 70px 0; }
  .error-404 .error-code { font-size: 4rem; }
}
