/*
Theme Name: Civil Marine
Theme URI: https://civilmarine.com.au
Author: Civil Marine
Description: Custom block theme for Civil Marine – engineering-led civil and marine delivery across Australia, New Zealand and the Pacific.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: civilmarine
*/

/* Layout helpers used by the block patterns */
.cm-eyebrow{font-family:var(--wp--preset--font-family--heading);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:13px;color:var(--wp--preset--color--link)}
.cm-dark .cm-eyebrow{color:var(--wp--preset--color--accent)}
.cm-rule{display:inline-block;width:40px;height:4px;background:var(--wp--preset--color--accent);vertical-align:middle;margin-right:12px}

.cm-hero{position:relative}
.cm-hero .wp-block-cover__inner-container{max-width:1280px}
.cm-hero h1{max-width:14ch}

.cm-stat .cm-num{font-family:var(--wp--preset--font-family--heading);font-weight:800;font-size:44px;line-height:1;color:var(--wp--preset--color--accent);margin:0}
.cm-stat p{margin:10px 0 0;color:#c9cdd0;font-size:15px}

.cm-card{background:var(--wp--preset--color--light);height:100%;display:flex;flex-direction:column}
.cm-card img{width:100%;height:220px;object-fit:cover;display:block}
.cm-card .cm-card-body{padding:24px 24px 28px}
.cm-card h3{margin:0}
.cm-card p{color:#4a5054;margin:10px 0 0}
.cm-card.is-white{background:#fff}
.cm-card.is-outline{background:#fff;border:1px solid #e3e6e8}
.cm-card .cm-meta{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5b6166}

.cm-chip{display:inline-block;background:var(--wp--preset--color--light);padding:6px 10px;font-size:14px;font-weight:600;margin:4px 6px 0 0}

.cm-partner{border-top:4px solid var(--wp--preset--color--dark);padding-top:20px}
.cm-partner p{color:#4a5054}

.cm-grid-dark{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:#4a4f53;border:1px solid #4a4f53}
.cm-grid-dark > div{background:var(--wp--preset--color--dark);padding:24px;font-family:var(--wp--preset--font-family--heading);font-weight:700}

.cm-topbar a{color:#fff;text-decoration:none}
.cm-topbar a:hover{color:var(--wp--preset--color--accent)}

.site-header .wp-block-navigation a{font-family:var(--wp--preset--font-family--heading);font-weight:600}
.cm-btn-accent .wp-block-button__link{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--dark)}
.cm-btn-outline-light .wp-block-button__link{background:transparent;border:2px solid #fff;color:#fff}

.cm-footer a{color:#c9cdd0}
.cm-footer a:hover{color:#fff}

/* Contact form (WPForms / Contact Form 7 fallback styling) */
.cm-form input,.cm-form textarea,.cm-form select{width:100%;padding:12px;border:1px solid #c9cdd0;font:inherit}

@media (max-width: 781px){
  .cm-hero h1{font-size:2.4rem !important}
}

/* Logos */
.cm-logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}
.cm-logo-tile{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e3e6e8;padding:20px;min-height:110px;transition:border-color .15s}
.cm-logo-tile:hover{border-color:var(--wp--preset--color--accent)}
.cm-logo-tile img{max-width:100%;max-height:80px;object-fit:contain}
.cm-partner-logo{background:var(--wp--preset--color--dark);display:flex;align-items:center;justify-content:center;padding:40px;min-height:200px}
.cm-partner-logo img{max-width:100%;max-height:120px;object-fit:contain}
.cm-card .cm-card-logo img{height:56px;width:auto;object-fit:contain;margin-bottom:12px}
.cm-partner .cm-partner-badge{background:var(--wp--preset--color--dark);padding:16px;margin-bottom:16px;display:flex;align-items:center;min-height:72px}
.cm-partner .cm-partner-badge img{max-height:56px;max-width:100%;object-fit:contain}
@media (max-width: 600px){ .site-header .wp-block-image img{width:240px !important} }
