/*
Theme Name: AMK Structures
Theme URI: https://amkstructures.co.uk/
Author: AMK Structures
Description: Lightweight custom WordPress theme for AMK Structures. All website wording is edited under Dashboard → AMK Website.
Version: 1.9.5
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: amk-structures
*/

:root {
  --amk-blue: #003b6f;
  --amk-blue-dark: #002b50;
  --amk-charcoal: #353a42;
  --amk-light: #f4f6f8;
  --amk-border: #dfe3e7;
  --amk-white: #ffffff;
  --amk-max: 1180px;
  --amk-font: Calibri, Carlito, Arial, Helvetica, sans-serif;
}

/* Calibri is used where installed (Windows and Microsoft Office). Carlito, an
   open-licence font with identical proportions, is bundled for all other devices. */
@font-face { font-family: 'Carlito'; src: url('assets/fonts/carlito-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('assets/fonts/carlito-italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('assets/fonts/carlito-bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--amk-charcoal);
  background: #fff;
  font-family: var(--amk-font);
  font-size: 17px;
  line-height: 1.65;
}
/* Use Calibri for all website text, even where a plugin or WordPress block tries to
   set its own font on a plain element. Icon fonts (which use class names) are unaffected. */
body, p, a, span, div, li, dt, dd, strong, em, b, i, small, label, blockquote, figcaption, cite,
h1, h2, h3, h4, h5, h6, td, th, caption, button, input, select, textarea, nav, header, footer, main, article, aside, section,
.entry-content, .wp-block-button__link { font-family: var(--amk-font); }
a { color: var(--amk-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--amk-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Keep the header clear of the WordPress admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner {
  max-width: var(--amk-max);
  margin: 0 auto;
  height: 108px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: 66px 42px;
  align-items: stretch;
}
/* Logo sits at the bottom of the header, level with the menu. */
.brand { grid-row: 1 / -1; align-self: end; display: flex; align-items: flex-end; padding: 0; }
.brand img { display: block; width: 225px; height: auto; max-width: 100%; }
.header-contact {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
}
.header-contact a { display: block; color: var(--amk-charcoal); }
.header-name { display: block; font-weight: 700; color: var(--amk-charcoal); }
.header-contact a:hover { color: var(--amk-blue); text-decoration: none; }
.main-nav { grid-column: 2; grid-row: 2; align-self: end; height: 42px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 2px; height: 100%; }
.main-nav li { display: flex; }
.main-nav a {
  display: flex;
  align-items: flex-end;
  padding: 0 23px 1px;
  color: var(--amk-charcoal);
  font-size: 20px;
  font-weight: 700;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--amk-blue); text-decoration: none; }
.main-nav li:last-child a { padding-right: 0; }
.menu-toggle { display: none; }

.container { width: min(var(--amk-max), calc(100% - 48px)); margin: 0 auto; }
.page-hero {
  background: linear-gradient(90deg, rgba(0,59,111,.96), rgba(53,58,66,.94));
  color: #fff;
  padding: 74px 0;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.page-hero p { max-width: 700px; margin: 0; font-size: 20px; }

.hero-home {
  min-height: 540px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, #0a3556, #4f535a);
  color: #fff;
}
.hero-home .hero-content { max-width: 760px; padding: 82px 0; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; opacity: .9; }
.hero-home h1 { margin: 0 0 22px; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.hero-home p { font-size: 21px; max-width: 650px; margin: 0 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 2px solid var(--amk-blue); background: var(--amk-blue); color: #fff; font-weight: 700; border-radius: 2px; }
.button:hover { background: var(--amk-blue-dark); border-color: var(--amk-blue-dark); color: #fff; text-decoration: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-outline { background: transparent; border-color: #fff; }
.button-outline:hover { background: #fff; color: var(--amk-blue); }
.button-light { background: #fff; border-color: #fff; color: var(--amk-charcoal); }
.button-light:hover { background: var(--amk-light); border-color: var(--amk-light); color: var(--amk-blue); }
.contact-box a.button-light { color: var(--amk-charcoal); }
.section-button { margin: 30px 0 0; }

.section { padding: 76px 0; }
.section-alt { background: var(--amk-light); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 10px; color: var(--amk-charcoal); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.section-heading p { margin: 0; color: #5a616a; }
.rule { width: 62px; height: 4px; background: var(--amk-blue); margin: 16px 0 22px; }

.services-grid, .project-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--amk-border); background: #fff; padding: 28px; }
.card h3 { margin: 0 0 10px; color: var(--amk-blue); font-size: 22px; }
.card p { margin: 0; color: #5a616a; }
.project-card { padding: 0; overflow: hidden; }
.project-thumb { display: block; aspect-ratio: 16 / 9; background: #e9edf1; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px; }
.project-meta { color: #69717a; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.project-body h3 { margin-top: 7px; }
.card h2 a, .card h3 a { color: inherit; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; }
.admin-hint { margin-top: 12px !important; font-size: 14px; border-left: 3px solid var(--amk-blue); padding-left: 10px; }

.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: 38px; line-height: 1.1; margin-top: 0; }
.check-list { padding: 0; margin: 26px 0 0; list-style: none; }
.check-list li { border-top: 1px solid var(--amk-border); padding: 10px 0 10px 22px; position: relative; }
.check-list li:before { content: '•'; position: absolute; left: 4px; color: var(--amk-blue); font-weight: 900; }
.contact-box { background: var(--amk-charcoal); color: #fff; padding: 32px; }
.contact-box h3 { margin-top: 0; font-size: 25px; }
.contact-box a { color: #fff; font-weight: 700; }
.about-grid .contact-box { text-align: center; }
.contact-page-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.contact-details-box p { margin: 0 0 22px; }
.contact-details-box p:last-child { margin-bottom: 0; }
.amk-contact-form { width: 100%; text-align: left; }
.amk-contact-form p { margin: 0 0 20px; text-align: left; }
.amk-contact-form label { display: block; width: 100%; font-weight: 700; margin-bottom: 7px; text-align: left; }
.amk-contact-form label span { color: var(--amk-blue); }
.amk-contact-form input, .amk-contact-form textarea { width: 100%; border: 1px solid #cbd1d7; background: #fff; color: var(--amk-charcoal); padding: 12px 13px; font: inherit; border-radius: 0; }
.amk-contact-form textarea { resize: vertical; min-height: 180px; }
.amk-contact-form input:focus, .amk-contact-form textarea:focus { outline: 2px solid rgba(0,59,111,.18); border-color: var(--amk-blue); }
.form-required-note { font-size: 14px; color: #69717a; }
.form-submit { margin: 24px 0 0; }
.form-notice { padding: 16px 18px; margin: 0 0 26px; border-left: 4px solid var(--amk-blue); background: var(--amk-light); }
.form-notice a { font-weight: 700; }
.form-error { border-left-color: #8a2e2e; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.content-area { padding: 68px 0; }
.content-area h2, .content-area h3 { color: var(--amk-charcoal); line-height: 1.2; }
.content-area h2 { font-size: 34px; }
.content-area h3 { font-size: 25px; }
.container-narrow { max-width: 900px; }
.entry-content h2 { margin: 1.6em 0 .5em; }
.entry-content h3 { margin: 1.3em 0 .4em; }
.entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; }
.entry-content th, .entry-content td { border: 1px solid var(--amk-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--amk-light); }
.container-medium { max-width: 1000px; }
.featured-image { margin-top: 14px; }
.entry-content { margin-top: 28px; }
.entry-content > :first-child { margin-top: 0; }
.contact-page-content { margin: 0 0 40px; }
.back-link { margin-top: 40px; }
.archive-description p { max-width: 700px; margin: 0; font-size: 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--amk-border); font-weight: 700; }
.nav-links .page-numbers.current { background: var(--amk-blue); border-color: var(--amk-blue); color: #fff; }
.post-card { padding: 0; overflow: hidden; }
.post-card .post-body { padding: 24px; }
.post-card h3 { font-size: 23px; margin: 7px 0 10px; line-height: 1.2; }
.post-card h2 { font-size: 25px; margin: 7px 0 10px; line-height: 1.2; }
.post-date { font-size: 14px; color: #69717a; font-weight: 700; }

.site-footer { background: var(--amk-charcoal); color: #d9dde2; padding: 42px 0 24px; text-align: center; }
.site-footer img { display: block; width: 180px; filter: brightness(0) invert(1); opacity: .95; margin: 0 auto; }
.site-footer p { max-width: 760px; margin: 18px auto 0; }
.copyright a { color: #d9dde2; text-decoration: underline; }
.copyright a:hover { color: #fff; }
.footer-sep { margin: 0 8px; opacity: .6; }
.contact-name { font-weight: 700; font-size: 19px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: 14px; color: #b8bec5; }

.wp-block-image img { border-radius: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--amk-blue); z-index: 2000; font-weight: 700; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 800px) {
  .header-inner { height: 108px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 66px 42px; gap: 0 10px; }
  .brand { grid-row: 1 / -1; grid-column: 1; align-self: end; }
  .brand img { width: 170px; }
  .header-contact { grid-row: 1; grid-column: 2; justify-self: end; align-self: start; margin: 0; padding-top: 8px; font-size: 11px; gap: 1px; }
  .menu-toggle { grid-row: 2; grid-column: 2; align-self: end; justify-self: end; display: inline-flex; background: transparent; border: 1px solid var(--amk-border); color: var(--amk-charcoal); padding: 7px 12px; font-family: inherit; font-weight: 700; margin-bottom: 5px; }
  .main-nav { display: none; position: absolute; top: 108px; left: 50%; right: auto; width: 100vw; transform: translateX(-50%); background: #fff; border-bottom: 1px solid var(--amk-border); z-index: 1001; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; height: auto; width: 100%; margin: 0; padding: 10px 18px 16px; background: #fff; }
  .main-nav li { width: 100%; }
  .main-nav a { min-height: 48px; padding: 0 14px; color: var(--amk-charcoal); font-size: 20px; background: #fff; }
  .hero-home { min-height: 510px; }
  .hero-home .hero-content { padding: 64px 0; }
  .services-grid, .project-grid, .post-grid, .about-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .about-grid { gap: 34px; }
}
