/* ========================================
   HOMEPAGE STYLES - HOMEPAGE.HTML ONLY
   ======================================== */

/* Lock homepage logo size so navbar doesn't shrink on load */
:root { --logo-size: 67px; }

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: #FDFBF0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    font-family: "Sansation";
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.8; }

.logo-img {
    height: var(--logo-size);
    width: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a:focus {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.nav a.active {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    color: var(--brand-800);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.has-dropdown .dropdown {
    position: absolute;
	right: 0;
    left: auto;
    top: 100%;
    min-width: 250px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    display: none;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { padding: 0; }
.dropdown a { 
	display: block; 
	padding: 10px 14px; 
	color: var(--brand); 
	font-weight: 700; 
	line-height: 1.5; 
	white-space: normal; 
	text-decoration: none;
}
.dropdown a:hover { 
	background: #FDFBF0; 
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Mobile */
@media (max-width: 720px) {
	.nav ul {
		display: none;
		position: absolute;
		right: 20px;
		top: 64px;
		background: #FDFBF0; 
		padding: 14px;
		border: 1px solid #e5e5df;
		border-radius: 6px;
		flex-direction: column;
		gap: 12px;
	}
	.nav ul.open { display: flex; }
	.mobile-nav-toggle {
		display: inline-block;
		background: transparent;
		border: 0;
		font-size: 22px;
	}
}
.site-header {
	background: #FDFBF0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.nav a:hover,
.nav a:focus {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}
.hero {
	position: relative;
	height: 110vh;
	min-height: 520px;
	overflow: hidden;
}
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85);
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}
.hero-content {
	position: relative;
	display: grid;
	place-content: center;
	text-align: center;
	height: 100%;
	color: #FDFBF0;
}
.hero-content { max-width: 980px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.hero h1 {
	font-size: clamp(28px, 4.2vw, 52px);
	line-height: 1.15;
	margin: 0 0 18px 0;
	letter-spacing: 0.5px;
}
.hero p {
	max-width: 860px;
	margin: 0 auto 22px auto;
	color: #FDFBF0;
}

/* Mobile-safe hero behavior */
@media (max-width: 900px) {
	.hero {
		height: auto; /* remove fixed viewport height */
		min-height: unset;
		overflow: visible;
		padding: 90px 0 90px; /* breathing room below sticky header */
	}
	.hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.18; }
	.hero p { padding-left: 16px; padding-right: 16px; }
    /* Align with about page: reduce heavy overlaps and stack */
    .story { margin-top: 0; }
    .story::before { height: 70%; }
    .story-media img { transform: none; }
    .story-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; gap: 24px; }
    .card { min-height: unset; padding: 28px 20px; }
    .card p { font-size: 15px; line-height: 1.7; }
}

/* Homepage hero button should be light, not green */
.hero .btn { 
	background: #FDFBF0; 
	color: #465940; 
	box-shadow: none; 
	border: 1px solid #FDFBF0; 
	border-radius: 24px; 
	display: block; 
	width: 180px; 
	max-width: 100%; /* don't exceed viewport width */
	padding: 8px 14px; 
	margin: 0 auto; 
}
.hero .btn:hover { 
	filter: none; 
	background: #ffffff; 
	border-color: FDFBF0; 
}
.btn-row {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.btn-row .btn {
	margin: 0;
	width: auto;
	min-width: 180px;
}
.btn-outline {
	background: transparent;
	color: #FDFBF0;
	border: 1px solid #FDFBF0;
}
.btn-outline:hover {
	background: #FDFBF0;
	color: #465940;
}

/* Prevent hero button overflow on very small screens */
@media (max-width: 480px) {
	.hero .btn {
		width: 100%;
		max-width: 260px;
		box-sizing: border-box;
	}
	.btn-row {
		padding-left: 16px;
		padding-right: 16px;
	}
	.btn-row .btn {
		min-width: 0;
	}
}

/* ===== STORY SECTION ===== */
/* Tuning knobs: image vertical overlap => .story-media img transform,
   underline width => .story-content h2::after width */
.story {
	/* Off-white base with a green band on top */
	background: var(--bg);
	color: var(--white);
	position: relative;
	overflow: visible;
	margin-top: -60px;
}
.story::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 90%; /* height of the green band */
	background: var(--brand);
	z-index: 0;
}
.story-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 36px;
	align-items: center;
	position: relative;
	z-index: 1; /* above green band */
}
.story-media img { 
	width: 100%; 
	height: auto; 
	display: block; 
	filter: grayscale(100%); 
	/* Push image downward to overlap into off‑white below */
	transform: translateY(40px);
}	
.story h1 { 
    margin: 0 0 12px 0; 
    text-transform: uppercase;
    letter-spacing: .8px;
}
.story p { 
	color: #FDFBF0; 
}

/* Center text block like screenshot with max width and subtle underline */
.story-content { 
	text-align: center; 
}
.story-title {
	font-size: clamp(30px, 6vw, 60px);;
	line-height: 1.2;
}


.story-content h1{
	position: relative;
	padding-bottom: 12px;
	font-size: clamp(30px, 6vw, 60px);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .8px;
}
.story-content h1::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 140px;
	height: 2px;
	background: rgba(255,255,255,0.5);
}
.story-content p { max-width: 640px; margin: 0 auto 10px auto; }

.story .btn { 
	background: #FDFBF0; 
	color: #465940; 
	box-shadow: none; 
	border: 1px solid #FDFBF0; 
	border-radius: 24px; 
	display: block; 
	width: 180px; 
	padding: 8px 14px; 
	margin: 0 auto; 
}
.story .btn:hover { 
	filter: none; 
	background: #ffffff; 
	border-color: FDFBF0; 
}

/* ===== WHAT WE DO SECTION ===== */
/* Tuning knobs: card min height => .card min-height, grid columns => .cards grid-template-columns */
.what-we-do h2, .clients h2 { 
	text-align: center; 
	margin: 0 0 10px 0; 
	letter-spacing: .6px; 
	color: var(--brand); 
}
/* Support h1 used for the What We Do heading */
.what-we-do h1 { 
	text-align: center; 
	margin: 0 0 10px 0; 
	letter-spacing: .6px; 
    color: var(--brand);
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.2; 
}
.what-we-do h2 { 
	position: relative; 
    padding-bottom: 10px;
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1.2; 
}
.what-we-do h2::after {
	content: "";
	display: block;
	width: 120px;
	height: 2px;
	background: rgba(70, 89, 64, 0.5);
	margin: 10px auto 0 auto;
}

/* Service Cards Grid */
.cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(420px, 1fr));
	gap: 44px;
	justify-content: center;
}
.card {
	background: var(--brand);
	color: var(--white);
	padding: 56px 48px;	
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 550px; /* ensure consistent card height */
    position: relative;
    overflow: hidden;
}
.card h3 { 
	margin: 0 0 16px 0; 
	text-transform: uppercase; 
	text-align: center; 
	letter-spacing: .6px; 
	font-size: clamp(28px, 3.6vw, 48px); 
}
.card p { 
	color: #FDFBF0; 
	text-align: center; 
	max-width: 520px; 
	margin: 18px auto 0; 
	font-size: 16px; 
	line-height: 1.9; 
}
.card .btn { 
	display: block; 
	margin: 24px auto 0; 
	border-radius: 24px; 
	padding: 12px 24px; 
	width: 168px; 
	text-align: center; 
	background: var(--white); 
	color: #465940; 
	border: 1px solid #FDFBF0; 
}

/* Hover image reveal for service cards */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
	z-index: 1; /* 👈 important */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .35s ease, transform .6s ease;
    filter: grayscale(100%) contrast(1.05) brightness(.9);
}
.card:hover::before {
    opacity: .35; /* stronger image reveal on hover */
    transform: scale(1);
}

/* Specific images per card */
.card-design::before, .DesignPhoto::before {
    background-image: url('assets/images/designbbg.png');
}
.card-build::before {
    background-image: url('assets/images/BuildPhoto.png');
}

/* ===== CLIENTS SECTION ===== */
.clients .eyebrow { 
	text-align: center; 
	letter-spacing: 2px; 
	text-transform: uppercase; 
	color: #465940; 
	font-size: clamp(26px, 4.5vw, 48px); 
	margin: 0 0 6px 0; 
}
.clients h1 { 
	text-align: center; 
	font-size: clamp(30px, 6vw, 60px); 
	margin: 0; 
}


/* Client Logo Slider Animation */
.logo-slider { 
	position: relative; 
	overflow: hidden; 
	margin: 30px auto 0 auto; 
	max-width: 1120px; 
}
.logo-track { 
	display: flex; 
	gap: 48px; 
	align-items: center; 
	width: max-content; 
	animation: slide-logos 22s linear infinite; 
}
.logo-item { 
	flex: 0 0 auto; 
	display: grid; 
	place-items: center; 
	padding: 8px 0; 
}
.logo-item img { 
	display: block; 
	max-height: 110px; 
	max-width: 220px; 
	width: auto; 
	height: auto; 
	object-fit: contain; 
	filter: none; 
	opacity: 1; 
	transition: transform 0.3s ease;
}

@media (max-width: 560px) {
    .logo-item img { max-height: 80px; max-width: 160px; }
}

@keyframes slide-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-slider:hover .logo-track { 
	animation-play-state: paused; 
}

/* Hover zoom effect for homepage logos */
.logo-item:hover img { 
	transform: scale(1.1); 
}


/* ===== MODAL STYLES ===== */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.modal-content {
	position: relative;
	background-color: #FDFBF0;
	margin: 2% auto;
	padding: 0;
	width: 90%;
	max-width: 1200px;
	height: 90vh;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	display: flex;
	overflow: hidden;
}

.modal-sidebar {
	width: 25%;
	background-color: #465940;
	color: #FDFBF0;
	padding: 30px 20px;
	overflow-y: auto;
}

.modal-main {
	width: 75%;
	background-color: #FDFBF0;
	padding: 40px;
	overflow-y: auto;
	position: relative;
}

.modal-main::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: none;
	pointer-events: none;
}

.back-link {
	color: #FDFBF0;
	text-decoration: none;
	font-size: 16px;
	margin-bottom: 30px;
	display: block;
	transition: color 0.3s ease;
}

.back-link:hover {
	color: #FDFBF0;
	text-decoration: underline;
}

.modal-nav ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

.modal-nav li {
	margin-bottom: 15px;
}

.modal-nav a {
	color: #FDFBF0;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.modal-nav a:hover {
	color: #FDFBF0;
	text-decoration: underline;
}

.modal-main h1 {
	font-size: 32px;
	font-weight: bold;
	color: #465940;
	margin: 0 0 30px 0;
	text-align: center;
	font-family: 'Sansation';
}

.modal-main h2 {
	font-size: 20px;
	font-weight: bold;
	color: #465940;
	margin: 30px 0 15px 0;
	font-family: 'Sansation';
}

.modal-main p {
	font-size: 16px;
	line-height: 1.6;
	color: #465940;
	margin-bottom: 15px;
}

.modal-main ul {
	margin: 15px 0;
	padding-left: 20px;
}

.modal-main li {
	font-size: 16px;
	line-height: 1.6;
	color: #465940;
	margin-bottom: 8px;
}

.modal-main a {
	color: #465940;
	text-decoration: underline;
}

.modal-main a:hover {
	color: #465940;
}

.modal-intro {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #465940;
}

section {
	margin-bottom: 25px;
}

/* Close button */
.close {
	color: #465940;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	top: 15px;
	right: 20px;
	cursor: pointer;
}

.close:hover,
.close:focus {
	color: #465940;
	text-decoration: none;
}

/* Responsive modal */
@media (max-width: 768px) {
	.modal-content {
		width: 95%;
		height: 95vh;
		margin: 2.5% auto;
		flex-direction: column;
	}
	
	.modal-sidebar {
		width: 100%;
		height: auto;
		max-height: 200px;
		padding: 20px;
	}
	
	.modal-main {
		width: 100%;
		padding: 20px;
	}
	
	.modal-main h1 {
		font-size: 24px;
		margin-bottom: 20px;
	}
	
	.modal-main h2 {
		font-size: 18px;
		margin: 20px 0 10px 0;
	}
	
	.modal-nav ol {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.modal-nav li {
		margin-bottom: 0;
	}
	
	.modal-nav a {
		font-size: 12px;
		padding: 5px 10px;
		background-color: rgba(70, 89, 64, 0.1);
		border-radius: 4px;
		display: block;
	}
}

@media (max-width: 480px) {
	.modal-content {
		width: 98%;
		height: 98vh;
		margin: 1% auto;
	}
	
	.modal-sidebar {
		padding: 15px;
	}
	
	.modal-main {
		padding: 15px;
	}
	
	.modal-main h1 {
		font-size: 20px;
	}
	
	.modal-main h2 {
		font-size: 16px;
	}
	
	.modal-main p,
	.modal-main li {
		font-size: 14px;
	}
}

/* ===== Reusable Section Heading ===== */
.section-heading {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 32px auto;
}
.section-heading h2 {
	margin: 6px 0 10px 0;
	font-size: clamp(24px, 3vw, 34px);
}
.section-heading .section-intro {
	margin: 0;
}
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--brand-700, #465940);
	margin: 0;
}

/* ===== Projects ===== */
.projects {
	background: #FDFBF0;
	color: #465940;
}
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.project-card {
	background: #FDFBF0;
	border: 1px solid rgba(70,89,64,0.08);
	border-left: 4px solid #465940;
	border-radius: 12px;
	padding: 22px 20px;
	box-shadow: 0 12px 34px rgba(70,89,64,0.08);
	display: grid;
	gap: 10px;
}
.project-card h3 {
	margin: 0;
	font-size: 20px;
	color: #465940;
}
.project-card p { margin: 0; color: #465940; }
.project-meta {
	font-size: 13px;
	color: #465940;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.btn-text {
	color: var(--brand, #465940);
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.btn-text:hover { text-decoration: underline; }

/* ===== HOMEPAGE MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
	.story-grid { grid-template-columns: 1fr; }
	.cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.card > * {
    position: relative;
    z-index: 2;
}
.card:hover .btn {
    background: #ffffff;
    color: #465940;
    transform: translateY(-2px);
    transition: transform .2s ease;
}
@media (max-width: 900px) {
  .story {
    margin-top: 0;
  }

  .story::before {
    height: 100%; /* allow full height */
  }

  .story-media img {
    transform: none; /* remove downward push */
  }

  .story-content {
    padding-bottom: 40px; /* breathing room for button */
  }
}
.footer-address a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-address a:hover {
  color: #C8A04A; /* or your brand accent */
}

.location-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-top: 2px;
  flex-shrink: 0;
}
.logo-item a {
    text-decoration: none;  /* removes underline */
    color: inherit;         /* keeps your text color (not blue) */
}