/*
Theme Name: CDDL Custom Theme
Theme URI: https://example.com/
Author: Roky Anton
Author URI: https://www.instagram.com/rokyanton/
Description: A premium, custom-coded construction theme for Concrete Design and Development Limited.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: cddl-custom-theme
*/

:root {
	--primary: #13a8b4; /* Cyan/Teal from Logo */
	--secondary: #2c3289; /* Dark Blue from Logo */
	--dark: #0f172a; /* Slate 900 */
	--light: #f8fafc;
	--text: #475569;
	--white: #ffffff;
	--font-heading: 'Outfit', sans-serif;
	--font-body: 'Inter', sans-serif;
}

html {
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	color: var(--text);
	line-height: 1.6;
	background-color: var(--white);
	overflow-x: hidden;
	font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--dark);
	font-weight: 600;
	margin-bottom: 1rem;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--secondary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: 120px 0;
	scroll-snap-align: start;
	scroll-margin-top: 70px; /* Offset for sticky header */
}

.section-title {
	text-align: center;
	margin-bottom: 60px;
	position: relative;
	z-index: 2;
}
.section-title h2 {
	font-size: 2.8rem;
	font-weight: 700;
	position: relative;
	display: inline-block;
	color: var(--secondary);
	letter-spacing: -0.5px;
}
.section-subtitle-tag {
	display: block;
	font-size: 0.85rem;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 10px;
}
.section-title p {
	font-size: 1.1rem;
	color: var(--text);
	margin-top: 15px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Top Bar */
.top-bar {
	background-color: var(--secondary);
	color: var(--light);
	font-size: 0.9rem;
	padding: 10px 0;
	position: absolute;
	top: 0; left: 0; width: 100%;
	z-index: 1001;
}

/* -------------------------------------
   Fullscreen Overlay Navigation
------------------------------------- */
.fullscreen-nav-overlay {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100vh;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(20px);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	transform: translateY(-100%);
}
.fullscreen-nav-overlay.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.fullscreen-nav-close {
	position: absolute;
	top: 30px;
	right: 30px;
	background: transparent;
	border: none;
	color: var(--white);
	font-size: 32px;
	cursor: pointer;
	transition: transform 0.3s ease;
}
.fullscreen-nav-close:hover {
	transform: rotate(90deg);
}
.fullscreen-navigation ul {
	list-style: none;
	text-align: center;
}
.fullscreen-navigation ul li {
	margin: 20px 0;
}
.fullscreen-navigation ul li a {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--white);
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: color 0.3s ease;
}
.fullscreen-navigation ul li a:hover {
	color: var(--primary);
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.top-bar-left, .top-bar-right {
	display: flex;
	gap: 20px;
	align-items: center;
}
.top-bar a {
	color: var(--light);
}
.top-bar a:hover {
	color: var(--primary);
}
.top-bar-icon {
	color: var(--primary);
	margin-right: 5px;
}
.search-form {
	display: flex;
	background: rgba(255,255,255,0.1);
	border-radius: 4px;
	overflow: hidden;
}
.search-form input {
	background: transparent;
	border: none;
	padding: 5px 10px;
	color: #fff;
	outline: none;
}
.search-form button {
	background: transparent;
	border: none;
	color: var(--primary);
	padding: 5px 10px;
	cursor: pointer;
}

/* Header */
.site-header {
	position: absolute;
	top: 45px; /* offset for top-bar */
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(15, 23, 42, 0.85); /* Dark semi-transparent */
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	transition: all 0.3s ease;
}

.site-header.sticky {
	position: fixed;
	top: 0;
	background: var(--dark);
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hamburger-menu-toggle {
	display: none;
}
.site-header.sticky .hamburger-menu-toggle {
	display: block;
}
.site-header.sticky .main-navigation {
	display: none;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.site-logo img {
	max-height: 60px;
}
.site-logo {
	display: flex;
	align-items: center;
}
.site-logo img, .custom-logo {
	max-height: 60px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 30px;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 5px;
	position: relative;
	display: block;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation li:hover > a::after,
.main-navigation .current-menu-item > a::after {
	width: 100%;
}

.main-navigation a:hover, .main-navigation li:hover > a {
	color: var(--primary) !important; /* Force teal on hover despite inline customizer */
}

/* Sub-menu Dropdowns */
.main-navigation .sub-menu {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--white);
	min-width: 240px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	flex-direction: column;
	gap: 0;
	border-radius: 4px;
	overflow: hidden;
}

.main-navigation li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu li {
	width: 100%;
}

.main-navigation .sub-menu a {
	color: var(--dark) !important;
	padding: 12px 20px;
	font-size: 0.95rem;
	text-transform: none;
}

.main-navigation .sub-menu a::after {
	display: none;
}

.main-navigation .sub-menu a:hover {
	background: rgba(19, 168, 180, 0.05);
	color: var(--primary) !important;
}

/* Mega Menu Styles */
.main-navigation .has-mega-menu > .sub-menu {
	width: 600px;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 20px;
	gap: 10px;
}
.main-navigation .has-mega-menu:hover > .sub-menu {
	transform: translateX(-50%) translateY(0);
}
.main-navigation .has-mega-menu .sub-menu a {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-radius: 6px;
	font-weight: 500;
}
.main-navigation .has-mega-menu .sub-menu a i {
	margin-right: 15px;
	font-size: 1.2rem;
	color: var(--primary);
	width: 24px;
	text-align: center;
	transition: all 0.3s ease;
}
.main-navigation .has-mega-menu .sub-menu a:hover i {
	transform: scale(1.1);
}

/* Hero GSAP Canvas Sequence */
.home-hero__wrapper {
	position: relative;
	height: 300vh; /* Scroll room for animation */
	background: transparent;
}
.home-hero__video-wrapper {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}
.image-sequence__canvas {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hero-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(to right, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 100%);
	pointer-events: none;
	z-index: 1;
}
.home-hero__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}
.hero-content {
	position: relative;
	z-index: 10;
	max-width: 700px;
	padding: 0 20px;
	pointer-events: auto;
}
.hero-content h1 {
	color: var(--white);
	font-size: 4.5rem;
	line-height: 1.1;
	margin-bottom: 20px;
}
.hero-content h1 span {
	color: var(--primary);
}
.hero-content p {
	color: rgba(255,255,255,0.9);
	font-size: 1.25rem;
	margin-bottom: 40px;
}
.btn {
	display: inline-block;
	padding: 15px 35px;
	background: var(--primary);
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	border-radius: 4px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	border: 2px solid var(--primary);
}
.btn:hover {
	background: var(--secondary);
	border-color: var(--secondary);
	color: var(--white);
}
.btn.btn-outline {
	background: transparent;
	color: var(--white);
	border-color: var(--white);
	margin-left: 15px;
}
.btn.btn-outline:hover {
	background: var(--white);
	color: var(--secondary);
	border-color: var(--white);
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	align-items: stretch;
}
.service-card {
	background: var(--white);
	padding: 50px 40px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	border: none;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.service-icon {
	width: 60px;
	height: 60px;
	background: rgba(44, 50, 137, 0.05); /* deep blue tint */
	color: var(--secondary); /* deep blue */
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 25px;
	transition: all 0.3s ease;
}
.service-card:hover .service-icon {
	background: var(--secondary);
	color: var(--white);
}
.service-card h3 {
	font-size: 1.3rem;
	color: var(--secondary);
	margin-bottom: 15px;
}
.service-card p {
	font-size: 0.95rem;
	color: var(--text);
}

/* Service Modal */
.custom-modal-overlay {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100vh;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(10px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.custom-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}
.custom-modal-content {
	background: var(--white);
	width: 90%;
	max-width: 600px;
	border-radius: 12px;
	padding: 40px;
	position: relative;
	transform: translateY(30px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.custom-modal-overlay.active .custom-modal-content {
	transform: translateY(0);
}
.custom-modal-close {
	position: absolute;
	top: 20px; right: 20px;
	background: rgba(0,0,0,0.05);
	border: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text);
	transition: all 0.3s ease;
}
.custom-modal-close:hover {
	background: var(--primary);
	color: var(--white);
	transform: rotate(90deg);
}
.custom-modal-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	padding-bottom: 20px;
}
.custom-modal-icon {
	width: 50px; height: 50px;
	background: rgba(19, 168, 180, 0.1);
	color: var(--primary);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-right: 20px;
}
.custom-modal-title {
	font-size: 1.5rem;
	color: var(--secondary);
	margin: 0;
}
.custom-modal-body p {
	font-size: 1rem;
	color: var(--text);
	line-height: 1.6;
	margin-bottom: 15px;
}

/* Projects Grid */
.projects-section {
	background: var(--light);
	position: relative;
	overflow: hidden;
}

@keyframes trailDrop {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.5) translateY(30px) rotate(0deg);
	}
	20% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1) translateY(-15px) rotate(var(--rot, 0deg));
	}
	40% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1) translateY(-25px) rotate(calc(var(--rot, 0deg) * 1.2)); 
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.4) translateY(150px) rotate(calc(var(--rot, 0deg) * 3)); 
	}
}

.trail-img {
	position: absolute;
	width: 200px;
	height: 140px;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	pointer-events: none;
	z-index: 0;
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
	animation: trailDrop 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.projects-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 992px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.projects-grid {
		grid-template-columns: 1fr;
	}
}

.projects-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}
@media (max-width: 992px) {
	.projects-list {
		grid-template-columns: 1fr;
	}
}
.project-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.project-img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
	transform: scale(1.05);
}
.project-info {
	position: absolute;
	bottom: 0; left: 0; width: 100%;
	padding: 30px;
	background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
	color: var(--white);
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.3s ease;
}
.project-card:hover .project-info {
	transform: translateY(0);
	opacity: 1;
}
.project-info h3 {
	color: var(--white);
	margin-bottom: 5px;
}
.project-meta {
	font-size: 0.9rem;
	color: var(--primary);
	font-weight: 600;
}

/* -------------------------------------
   Classic Yet Modern Footer
------------------------------------- */
.site-footer {
	background: #0f172a; /* deep slate/dark */
	color: #94a3b8; /* slate 400 */
	padding: 80px 0 30px;
	position: relative;
	overflow: hidden;
}
.footer-main-content {
	position: relative;
	z-index: 2;
}

/* Marquee */
.footer-marquee-section {
	border-bottom: 1px solid rgba(255,255,255,0.05);
	padding-bottom: 40px;
	margin-bottom: 50px;
	overflow: hidden;
}
.marquee-container {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
	mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-track {
	display: inline-block;
	white-space: nowrap;
	animation: marquee 30s linear infinite;
}
.marquee-track img {
	height: 60px;
	width: auto !important;
	display: inline-block !important;
	margin-right: 80px;
	filter: grayscale(100%) brightness(150%);
	opacity: 0.5;
	transition: all 0.3s ease;
	vertical-align: middle;
}
.marquee-track img:hover {
	filter: grayscale(0) brightness(100%);
	opacity: 1;
}
@keyframes marquee {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* 4-Column Grid */
.footer-grid-classic {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 60px;
}
.footer-col-classic {
	text-align: left;
}
.footer-classic-logo {
	max-height: 70px;
	width: auto;
	margin-bottom: 20px;
	display: block;
	filter: brightness(0) invert(1); /* Ensure logo is white on dark bg */
}
.footer-classic-title {
	font-size: 1.1rem;
	color: #f8fafc;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.footer-classic-title::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 30px; height: 2px;
	background: var(--primary);
}
.footer-classic-text {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #94a3b8;
}
.footer-classic-menu {
	list-style: none;
	padding: 0; margin: 0;
}
.footer-classic-menu li {
	margin-bottom: 12px;
}
.footer-classic-menu a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.3s ease;
}
.footer-classic-menu a:hover {
	color: var(--primary);
}
.footer-classic-contact {
	list-style: none;
	padding: 0; margin: 0;
}
.footer-classic-contact li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 15px;
	font-size: 0.95rem;
}
.footer-classic-contact i {
	color: var(--primary);
	margin-top: 4px;
	margin-right: 12px;
	width: 16px;
	text-align: center;
}

.site-info-premium {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.5);
}
.back-to-top {
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
}
.back-to-top:hover {
	color: var(--white);
}

/* Single Pages */
.page-header {
	background: var(--dark);
	padding: 150px 0 80px;
	text-align: center;
	color: var(--white);
}
.page-header h1 {
	color: var(--white);
	margin-bottom: 0;
	font-size: 3.5rem;
}

/* Responsive */
@media(max-width: 768px) {
	.hero-content h1 { font-size: 3rem; }
	.main-navigation { display: none; }
	.top-bar { display: none; }
	.site-header { top: 0; }
}
