/*
Theme Name: GC Waller Legacy Child
Theme URI: https://www.gcwaller.com.au/
Description: Legacy-faithful GC Waller rebuild using GeneratePress as the parent and Gutenberg for editable page content.
Author: Digerati
Template: generatepress
Version: 0.2.0
Text Domain: gcwaller-legacy
*/

:root {
    --gcw-lime: #99cc00;
    --gcw-olive: #6d7c41;
    --gcw-shell: 937px;
    --gcw-inner: 910px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.gcw-body {
    background: var(--gcw-lime);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.gcw-site {
    min-height: 100vh;
}

/* -------------------------------------------------------------------------
   RECOVERED HEADER
   ------------------------------------------------------------------------- */
.gcw-top {
    height: 121px;
    background: var(--gcw-lime) url("assets/images/backgroung_bg_top.jpg") repeat-x left top;
}

.gcw-top-inner {
    width: var(--gcw-shell);
    height: 121px;
    margin: 0 auto;
    box-shadow: 3px 0 7px rgba(0,0,0,.5), -3px 0 7px rgba(0,0,0,.5);
}

.gcw-top-inner a,
.gcw-top-inner img {
    display: block;
    width: 937px;
    height: 121px;
}

/* -------------------------------------------------------------------------
   PAGE-SPECIFIC PHOTOGRAPHIC PANEL
   Original site: full-width background, 910px centred Gutenberg/text zone.
   ------------------------------------------------------------------------- */
.gcw-body-content {
    width: 100%;
    min-height: 385px;
    padding: 20px 0;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.gcw-bg-home { background-image: url("assets/backgrounds/home_bg.jpg"); }
.gcw-bg-about { background-image: url("assets/backgrounds/aboutus_bg.jpg"); }
.gcw-bg-contact { background-image: url("assets/backgrounds/contctus_bg.jpg"); }
.gcw-bg-projects { background-image: url("assets/backgrounds/projects_bg.jpg"); }
.gcw-bg-expertise { background-image: url("assets/backgrounds/expertics_bg.jpg"); }
.gcw-bg-consultancy { background-image: url("assets/backgrounds/Consultancy_bg.jpg"); }
.gcw-bg-recognition { background-image: url("assets/backgrounds/recognation_bg.jpg"); }
.gcw-bg-sustainability { background-image: url("assets/backgrounds/sustainability_bg.jpg"); }

.gcw-mid {
    width: var(--gcw-inner);
    margin: 0 auto;
}

.gcw-article,
.gcw-entry-content {
    margin: 0;
    padding: 0;
}

/* Default editable page copy follows the original 320px scroll/content column. */
.gcw-entry-content {
    width: 320px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
}

/* Support the Home Gutenberg markup already pasted during v0.1 testing. */
.gcw-entry-content > .gcw-page,
.gcw-entry-content .gcw-home,
.gcw-entry-content .gcw-home-content {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.gcw-entry-content .gcw-home-content {
    width: 320px !important;
}

.gcw-entry-content h1,
.gcw-page-title {
    margin: 0;
    color: #fff;
    font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.gcw-entry-content .gcw-title-rule,
.gcw-entry-content hr {
    width: 283px;
    height: 2px;
    margin: 14px 0 20px !important;
    border: 0;
    background: rgba(255,255,255,.7);
}

.gcw-entry-content p {
    margin: 0 0 14px;
    color: #fff;
}

.gcw-entry-content a {
    color: #fff;
}

/* Wide Gutenberg layouts can opt in with this class later (projects/galleries). */
.gcw-entry-content:has(.gcw-wide),
.gcw-entry-content.gcw-wide {
    width: 100%;
}

/* -------------------------------------------------------------------------
   NAVIGATION - deliberately after content, as in the recovered site.
   Sustainability remains on one row at desktop width.
   ------------------------------------------------------------------------- */
.gcw-footer {
    background: var(--gcw-lime);
    color: #000;
}

.gcw-nav {
    height: 70px;
    background: var(--gcw-lime) url("assets/images/backgroung_bg_menu.jpg") repeat-x left top;
}

.gcw-nav-inner {
    width: var(--gcw-shell);
    margin: 0 auto;
}

.gcw-menu,
.gcw-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gcw-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.gcw-menu > li {
    position: relative;
    flex: 0 0 auto;
    padding: 0 17px;
}

.gcw-menu > li:first-child {
    padding-left: 23px;
}

.gcw-menu > li > a {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 39px;
    text-decoration: none;
    text-transform: lowercase;
    white-space: nowrap;
}

.gcw-menu > li > a:hover,
.gcw-menu > li.current-menu-item > a,
.gcw-menu > li.current-menu-ancestor > a {
    color: #000;
}

.gcw-menu .sub-menu {
    display: none;
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: 100%;
    width: 210px;
    background: var(--gcw-olive);
}

.gcw-menu li:hover > .sub-menu,
.gcw-menu li:focus-within > .sub-menu {
    display: block;
}

.gcw-menu .sub-menu li {
    border-bottom: 1px solid #fff;
}

.gcw-menu .sub-menu a {
    display: block;
    padding: 9px 18px;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.gcw-menu .sub-menu a:hover {
    color: #000;
}

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.gcw-footer-inner {
    width: var(--gcw-shell);
    min-height: 105px;
    margin: 0 auto;
    padding: 5px 0 18px;
}

.gcw-footer-titles {
    display: flex;
    height: 35px;
    margin: 0 0 30px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
}

.gcw-footer-title-left,
.gcw-footer-title-right {
    width: 50%;
}

.gcw-footer-title-left {
    color: #fff;
    text-align: left;
}

.gcw-footer-title-right {
    color: #a4d517;
    text-align: right;
}

.gcw-footer-meta {
    display: grid;
    grid-template-columns: 33% 34% 33%;
    align-items: center;
    font-size: 12px;
}

.gcw-footer-disclaimer {
    text-align: center;
}

.gcw-footer-disclaimer a {
    color: #fff;
    text-decoration: none;
}

.gcw-footer-credit {
    padding-right: 20px;
    text-align: right;
}

.gcw-footer-credit img {
    max-height: 28px;
    width: auto;
}

/* -------------------------------------------------------------------------
   RESPONSIVE FALLBACK. Desktop remains intentionally legacy-faithful.
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .gcw-top-inner,
    .gcw-nav-inner,
    .gcw-footer-inner {
        width: 100%;
        max-width: 937px;
    }

    .gcw-top-inner img {
        width: 100%;
        height: 121px;
        object-fit: cover;
    }

    .gcw-mid {
        width: calc(100% - 40px);
        max-width: 910px;
    }

    .gcw-menu {
        flex-wrap: wrap;
    }

    .gcw-nav {
        height: auto;
        min-height: 70px;
    }
}

@media (max-width: 700px) {
    .gcw-body-content {
        min-height: 0;
        background-position: center top;
    }

    .gcw-entry-content {
        width: min(100%, 360px);
        padding: 14px;
        background: rgba(0,0,0,.72);
    }

    .gcw-menu > li {
        padding-left: 12px;
        padding-right: 12px;
    }

    .gcw-footer-titles {
        display: block;
        height: auto;
        font-size: 26px;
        line-height: 1.2;
    }

    .gcw-footer-title-left,
    .gcw-footer-title-right {
        width: 100%;
        text-align: left;
    }

    .gcw-footer-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gcw-footer-disclaimer,
    .gcw-footer-credit {
        text-align: left;
    }
}


/* =========================================================
   CONTACT
   ========================================================= */

.gcw-contact-content {
	width: 620px;
	max-width: calc(100% - 40px);
	margin-left: 17px;
	padding-top: 22px;
	color: #fff;
}

.gcw-contact-columns {
	gap: 42px;
	margin: 0;
}

.gcw-contact-columns p {
	margin: 0 0 24px;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
}

.gcw-contact-columns strong {
	font-weight: 700;
}

.gcw-contact-columns a {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 700px) {
	.gcw-contact-columns {
		display: block;
	}

	.gcw-contact-columns .wp-block-column + .wp-block-column {
		margin-top: 25px;
	}
}

/* =========================================================
   PROJECT DETAIL PAGES
   ========================================================= */

.gcw-project-content {
	width: 590px;
	max-width: calc(100% - 40px);
	margin-left: 17px;
	padding-top: 22px;
	padding-bottom: 24px;
	color: #fff;
}

.gcw-project-content p {
	margin: 0 0 9px;
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
}

.gcw-project-content strong {
	font-weight: 700;
}

.gcw-project-gallery {
	width: 100%;
	gap: 6px;
	margin: 18px 0 0;
}

.gcw-project-gallery .wp-block-image {
	margin: 0;
}

.gcw-project-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

@media (max-width: 700px) {
	.gcw-project-content {
		width: auto;
		margin-left: 20px;
		margin-right: 20px;
	}
}