/* ========================================
   SERVICES PAGE STYLES - SERVICES.HTML ONLY
   ======================================== */
:root { --logo-size: 67px; }
/* ===== FONT IMPORTS ===== */
@font-face {
    font-family: "Amagro";
    src: url("fonts/Amagro-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Sansation";
    src: url("fonts/sansation.regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Sansation";
}

/* ===== 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: 900;
    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;
	}
}

/* ===== CAPITALIZED HEADINGS (Amagro) ===== */
h1, h2, h3, h4, h5, h6,
.design-tagline,
.design-description h2,
.build-description h2,
.build-tagline,
.services-hero h1,
.footer-col h5 {
    font-family: "Amagro";
    text-transform: uppercase;
}

/* ===== SLOGANS / TAGLINES THAT MUST BE SANSATION ===== */
.slogan,
.build-confidence,
.design-works {
    font-family: "Sansation"!important;
    text-transform: none;
    font-weight: normal;
}


/* ===== SERVICES HERO SECTION ===== */
.services-hero {
    position: relative;
    height: auto;
    min-height: 66vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 104px 0 48px; /* ensure space below header and for subtitle */
}

.services-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(70, 89, 64, 0.7), rgba(70, 89, 64, 0.7)), 
	            url('assets/images/herobg.gif') center/cover no-repeat;
	z-index: 0;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FDFBF0;
    max-width: 980px; 
    margin: 0 auto; 
    padding-left: 16px; 
    padding-right: 16px;
}

.services-hero h1 {
	font-size: clamp(28px, 5vw, 56px);
	line-height: 1.12;
	margin: 0 0 20px 0;
	letter-spacing: 2px;
	font-weight: 400;
	margin-top: -90;
	margin-bottom: 200px;
}

.services-hero p {
	font-size: clamp(16px, 2vw, 20px);
	max-width: 600px;
	margin: 0 auto;
	color: #FDFBF0;
	line-height: 1.6;
	font-family: "Sansation";
	margin-top: -200px;
	margin-bottom: 100px;
}

/* Mobile-safe hero behavior */
@media (max-width: 900px) {
    .services-hero {
        height: auto; /* remove fixed viewport height */
        min-height: unset;
        overflow: visible;
        padding: 90px 0 90px; /* breathing room below sticky header */
    }
    .services-hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.18; }
    /* Avoid next section overlapping hero on mobile */
    .design-section { margin-top: 0; padding-top: 40px; }
}

/* Extra-small screens: match About’s compact scale */
@media (max-width: 560px) {
	.services-hero h1 { font-size: clamp(24px, 7vw, 34px); line-height: 1.16; }
	.services-hero p { font-size: 15px; }
}

@media (max-width: 420px) {
    .services-hero { padding: 88px 0 28px; }
	.services-hero h1 { font-size: clamp(22px, 8vw, 30px); letter-spacing: 1.2px; }
	.services-hero p { font-size: 14px; }
}

/* ===== DESIGN SECTION ===== */
/* Tuning knobs: design grid gap => .design-grid gap, image overlap => .design-image margin-bottom,
   slider timing => @keyframes fadeCycle + nth-child delays */
.design-section {
	background: var(--brand);
	/* Keep sections clean + evenly spaced (no overlaps) */
	margin-top: 0;
	padding: 64px 0;
	color: #FDFBF0;
	position: relative;
	z-index: 2;
}

.design-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.design-content {
	position: relative;
}

.design-tagline {
	font-size: clamp(32px, 4vw, 48px);
	margin: 0 0 30px 0;
	letter-spacing: 1px;
	font-weight: 400;
}

.design-image {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	z-index: 3;
}

.design-image img {
	width: 100%;
	height: auto;
	display: block;
}
.design-description {
	min-height: unset;
	display: flex;
	flex-direction: column;
	justify-content: center; /* vertical centering */
	padding: 0;
}

/* ===== IMAGE OVERLAY STYLING ===== */
.image-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(70, 89, 64, 0.9));
	padding: 20px;
	color: #FDFBF0;
	font-family: "Sansation";
}

.image-overlay h3 {
	font-size: 18px;
	margin: 0 0 8px 0;
	font-weight: 600;
	letter-spacing: 0.5px;
	font-family: "Amagro", serif;
	text-transform: uppercase;
}

.image-overlay p {
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
	color: #FDFBF0;
	font-family: "Sansation";
}

.design-description h2 {
	font-size: clamp(40px, 5vw, 56px);
	margin: 0 0 30px 0;
	letter-spacing: 2px;
	font-weight: 400;
	text-align: right;
}

.design-description p {
	font-size: 20px;
	line-height: 1.8;
	color: #FDFBF0;
	text-align: right;
	font-family: "Sansation";
}

/* ===== BUILD SECTION ===== */
/* Tuning knobs: build grid gap => .build-grid gap, image overlap => .build-image margin-top */
.build-section {
    background: #FDFBF0;
    padding: 64px 0;   /* even vertical rhythm */
    color: #465940;
    position: relative;
    z-index: 1;
}

.build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;          /* reduced spacing between columns */
    align-items: center; /* vertically center content */
}

.build-description h2 {
	font-size: clamp(40px, 5vw, 56px);
	margin: 0 0 10px 0;
	letter-spacing: 2px;
	font-weight: 400;
	
}

.build-description p {
	font-size: 20px;
	line-height: 1.8;
	color: #465940;
	font-family: "Sansation";
}

.build-content {
	position: relative;
}

.build-image {
	position: relative;
	margin-bottom: 10px;
	border-radius: 4px;
	overflow: hidden;
	z-index: 2;
}

/* ===== Mobile layout adjustments ===== */
@media (max-width: 900px) {
    .design-grid { grid-template-columns: 1fr; gap: 28px; }
    .design-description h2, .design-description p { text-align: left; }
}

@media (max-width: 720px) {
    .build-grid { grid-template-columns: 1fr; gap: 24px; }
    .build-description h2 { font-size: clamp(28px, 7vw, 40px); }
    .build-description p, .design-description p { font-size: 16px; line-height: 1.6; }
}

.build-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Fade slider (crossfade) ===== */
.fade-slider {
    position: relative;
    display: grid; /* stack children while preserving natural height */
    overflow: hidden;
    border-radius: 6px;
}
.fade-slider img {
    grid-area: 1 / 1; /* stack all images */
    width: 100%;
    height: auto;
    opacity: 0;
    animation: fadeCycle 24s infinite;
}
.fade-slider img:nth-child(1) { animation-delay: 0s; }
.fade-slider img:nth-child(2) { animation-delay: 4s; }
.fade-slider img:nth-child(3) { animation-delay: 8s; }
.fade-slider img:nth-child(4) { animation-delay: 12s; }
.fade-slider img:nth-child(5) { animation-delay: 16s; }
.fade-slider img:nth-child(6) { animation-delay: 20s; }

@keyframes fadeCycle {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    30%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ===== Fade slider (static preview for services galleries) ===== */
.fade-slider {
    position: relative;
    display: grid; /* lets images overlap while preserving natural height */
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer; /* indicate click-to-open gallery */
}
.fade-slider img {
    grid-area: 1 / 1; /* single preview image */
    width: 100%;
    height: 100%;
	object-fit: cover;
    opacity: 1;
    animation: none;
}

/* Services image watermark */
.fade-slider::after {
	content: "Franzbuilt Construction Inc.";
	position: absolute;
	right: 10px;
	bottom: 8px;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(253, 251, 240, 0.85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	pointer-events: none;
	z-index: 3;
}

/* Services page: enforce consistent media size/aspect so rows stay balanced */
.build-image .fade-slider,
.design-image .fade-slider {
	aspect-ratio: 16 / 10;
	width: 100%;
	max-height: 460px;
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
	.build-image .fade-slider,
	.design-image .fade-slider {
		height: 360px;
	}
}

.build-tagline {
	font-size: clamp(32px, 4vw, 48px);
	margin: 0 0 30px 0;
	letter-spacing: 1px;
	font-weight: 100;
	text-align: right;
}



/* ===== 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; }
}

/* ===== 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: 
		linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
	background-size: 20px 20px;
	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;
	}
}
.footer-brand {
	padding-bottom: 40px;
}

/* ===== DESIGN GALLERY MODAL (reuses portfolio gallery look) ===== */
.completed-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1200;
	padding: 20px;
}

.completed-modal.open {
	display: flex;
}

.completed-modal-content {
	background: #465940;
	color: #FDFBF0;
	border-radius: 12px;
	width: min(1200px, 96vw);
	max-height: 90vh;
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	padding: 24px;
	position: relative;
	overflow: auto;
}

.completed-modal-left {
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	padding-right: 6px;
}

.completed-modal-left img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 10px;
}

/* Design gallery: keep thumbnails consistent, avoid "wide" distortion */
#designGalleryModal .completed-modal-left img {
	object-fit: contain;
	background: rgba(253, 251, 240, 0.08);
}

/* Watermark overlay for services galleries in modal */
.completed-modal-left {
	position: relative;
}

.completed-modal-left::after {
	content: "Franzbuilt Construction Inc.";
	position: absolute;
	right: 14px;
	bottom: 10px;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(253, 251, 240, 0.9);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
	pointer-events: none;
	z-index: 5;
}

.completed-modal-right {
	overflow-y: auto;
	padding-right: 6px;
}

.completed-modal-right h2 {
	margin-top: 0;
	margin-bottom: 12px;
}

.completed-modal-right p {
	margin: 0;
	line-height: 1.6;
	font-size: 15px;
}

.completed-close-btn {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: none;
	color: #FDFBF0;
	font-size: 28px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.completed-close-btn:hover {
	opacity: 0.8;
}

@media (max-width: 900px) {
	.completed-modal-content {
		grid-template-columns: 1fr;
		max-height: 92vh;
	}
}
.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;
}
