/* =========================================================
   PCSSD Dive Philippines Lite — single stylesheet
   Ocean/marine palette, no framework, kept intentionally small.
   ========================================================= */

:root {
	--pcssd-navy:       #041e3a;
	--pcssd-deep-blue:  #073763;
	--pcssd-ocean-blue: #0d6ea3;
	--pcssd-teal:       #0aa9a3;
	--pcssd-sand:       #f6f3ea;
	--pcssd-white:      #ffffff;
	--pcssd-ink:        #17242f;
	--pcssd-muted:      #4d5c66;
	--pcssd-border:     #dfe7ea;
	--radius: 10px;
	--shadow-sm: 0 1px 3px rgba(4, 30, 58, 0.08);
	--shadow-md: 0 8px 24px rgba(4, 30, 58, 0.12);
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--pcssd-ink);
	background: var(--pcssd-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pcssd-ocean-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2 { font-family: var(--font-heading); color: var(--pcssd-navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Accessibility --------------------------------------------------------*/
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link { position: absolute; top: -999px; left: 0; background: var(--pcssd-navy); color: #fff; padding: 10px 16px; z-index: 10000; }
.skip-link:focus { top: 0; position: fixed; width: auto; height: auto; clip: auto; }
:focus-visible { outline: 3px solid var(--pcssd-teal); outline-offset: 2px; }

/* Buttons ----------------------------------------------------------------*/
.btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: var(--radius);
	font-weight: 600;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--pcssd-teal); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: #08908b; color: #fff; }
.btn-secondary { background: var(--pcssd-navy); color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { background: #062b4d; color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* Top strap + header ------------------------------------------------------*/
.top-strap { background: var(--pcssd-navy); color: #cfe3f0; font-size: .8rem; }
.top-strap-inner { display: flex; gap: 8px; align-items: center; padding: 6px 20px; flex-wrap: wrap; }
.top-strap-sep { opacity: .5; }

.site-header { background: #fff; border-bottom: 1px solid var(--pcssd-border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 20px; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 54px; width: auto; }
.site-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--pcssd-navy); }

.main-navigation ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-navigation a { color: var(--pcssd-ink); font-weight: 600; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--pcssd-teal); text-decoration: none; }

/* Slideshow ----------------------------------------------------------------*/
.hero-slideshow { background: var(--pcssd-navy); }
.pcssd-slideshow { position: relative; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; background: var(--pcssd-navy); }
.pcssd-slideshow-track { position: relative; width: 100%; height: 100%; }
.pcssd-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1s ease;
}
.pcssd-slide.is-active { opacity: 1; }
.pcssd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pcssd-slideshow-dots {
	position: absolute;
	left: 0; right: 0; bottom: 16px;
	display: flex; justify-content: center; gap: 10px;
}
.pcssd-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(255,255,255,.35);
	padding: 0;
	cursor: pointer;
}
.pcssd-dot.is-active { background: #fff; }

@media (max-width: 680px) {
	.pcssd-slideshow { aspect-ratio: 4 / 5; }
}

/* Welcome section ------------------------------------------------------------*/
.welcome-section { padding: 60px 0; }
.welcome-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.welcome-heading { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.welcome-message { font-size: 1.1rem; color: var(--pcssd-muted); }

/* Page header / content -------------------------------------------------------*/
.page-header { background: var(--pcssd-deep-blue); color: #fff; padding: 50px 0; }
.page-title { color: #fff; margin-bottom: .2em; }
.page-subtitle { color: #cfe3f0; margin: 0; }
.content-area { padding: 60px 0; }

/* Application cards ---------------------------------------------------------*/
.application-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.application-card {
	border: 1px solid var(--pcssd-border);
	border-radius: var(--radius);
	padding: 34px;
	background: var(--pcssd-sand);
	box-shadow: var(--shadow-sm);
}
.application-card h2 { font-size: 1.4rem; }
.application-pending { color: var(--pcssd-muted); font-style: italic; }

@media (max-width: 720px) {
	.application-cards { grid-template-columns: 1fr; }
}

/* Footer ------------------------------------------------------------------*/
html { scroll-behavior: smooth; }
.site-footer { margin-top: 20px; position: relative; }
.agency-footer { background: var(--pcssd-navy); color: #cfe3f0; }
.footer-inner { padding: 34px 20px; text-align: center; font-size: .9rem; }
.agency-badge { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer-inner a { color: #cfe3f0; }
.footer-copyright { color: #93aebd; font-size: .8rem; margin: 8px 0 0; }

/* GWT 26.0 standard footer ("Republic of the Philippines" band) -----------*/
.gwt-footer { background: #eef1f2; border-top: 1px solid #d7dde0; color: var(--pcssd-ink); }
.gwt-footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.2fr 1fr;
	gap: 30px;
	padding: 40px 20px 30px;
}
.gwt-footer-col h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--pcssd-navy); margin-bottom: .6em; }
.gwt-footer-col p { font-size: .88rem; color: var(--pcssd-muted); }
.gwt-footer-seal { text-align: left; }
.gwt-seal-image { width: 72px; height: 72px; margin-bottom: 12px; }
.gwt-footer-links { list-style: none; margin: 0; padding: 0; }
.gwt-footer-links li { margin-bottom: 8px; font-size: .88rem; }
.gwt-footer-links a { color: var(--pcssd-deep-blue); }
.gwt-social-link { margin: 0 0 8px; font-size: .88rem; }
.gwt-social-link a { color: var(--pcssd-deep-blue); font-weight: 600; }

.gwt-footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: center;
	padding: 20px 0 34px;
	border-top: 1px solid #d7dde0;
}
.gwt-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 96px;
	text-align: center;
	color: var(--pcssd-muted);
	filter: grayscale(100%);
	opacity: .85;
	transition: opacity .15s ease, filter .15s ease;
}
a.gwt-badge:hover, a.gwt-badge:focus { opacity: 1; filter: none; text-decoration: none; }
.gwt-badge img { width: 56px; height: 56px; object-fit: contain; }
.gwt-badge-label { font-size: .72rem; line-height: 1.3; }

@media (max-width: 900px) {
	.gwt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.gwt-footer-grid { grid-template-columns: 1fr; }
}

/* Back to top ---------------------------------------------------------------*/
.back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pcssd-navy);
	color: #fff;
	border-radius: 50%;
	font-size: 1.2rem;
	box-shadow: var(--shadow-md);
	opacity: .85;
	z-index: 500;
}
.back-to-top:hover, .back-to-top:focus { opacity: 1; text-decoration: none; background: var(--pcssd-teal); }
