/* ==========================================================================
   TR Tankers Ltd — theme styles
   Loaded after Bootstrap 3.4.1; only overrides/extends what Bootstrap
   doesn't provide. Grid, responsive breakpoints and the navbar collapse
   behaviour all come from Bootstrap — this file is brand colour,
   typography and the bespoke sections (hero, quote card, guide tabs, etc).
   ========================================================================== */

:root {
	--tr-green-dark: #1f5c33;
	--tr-green: #2f7d47;
	--tr-green-light: #7ea98d;
	--tr-cream: #f4f2ec;
	--tr-cream-2: #ece8dd;
	--tr-ink: #232420;
	--tr-ink-soft: #55594f;
	--tr-amber: #c99a4a;
	--tr-radius: 14px;
}

body {
	font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
	color: var(--tr-ink);
	background: var(--tr-cream);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.tr-brand-name {
	font-family: 'Archivo', Helvetica, Arial, sans-serif;
	font-weight: 800;
	color: var(--tr-ink);
}

h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 30px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }

a { color: var(--tr-green-dark); }
a:hover, a:focus { color: var(--tr-green); }

.tr-skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--tr-green-dark);
	color: #fff;
	padding: 8px 16px;
	z-index: 1100;
	border-radius: 0 0 6px 6px;
}
.tr-skip-link:focus {
	top: 0;
	color: #fff;
}

/* ---- Top utility bar ---- */
.tr-topbar {
	background: var(--tr-green-dark);
	color: #eef1ea;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}
.tr-topbar-item { margin: 0 16px; }
.tr-topbar a { color: #eef1ea; }
.tr-topbar a:hover { color: #fff; }

/* ---- Navbar ---- */
.tr-navbar {
	background: var(--tr-cream);
	border: none;
	border-bottom: 1px solid var(--tr-cream-2);
	margin-bottom: 0;
	box-shadow: none;
	min-height: 76px;
	position: sticky;
	top: 0;
	z-index: 1030;
}
.tr-navbar .container { position: relative; }
.tr-navbar .navbar-header { padding: 14px 0; }
.tr-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	height: auto;
	padding: 0;
	margin: 0 !important;
}
.tr-brand-logo, .custom-logo { height: 48px; width: auto; }
.tr-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.tr-brand-name { font-size: 18px; }
.tr-brand-tagline { font-size: 11px; font-weight: 600; color: var(--tr-ink-soft); letter-spacing: .04em; }

/* Bootstrap's native float-based navbar handles desktop/mobile layout —
   we only need to raise the vertical padding and restyle the link/CTA
   colours to match the brand; no custom flex layout required. */
@media (min-width: 768px) {
	.tr-navbar .navbar-collapse {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.tr-navbar .navbar-nav > li > a {
		padding: 10px 16px;
		line-height: 20px;
	}
	.tr-navbar-cta {
		margin-top: 6px;
		margin-left: 16px;
	}
}
.tr-navbar .navbar-nav > li > a {
	font-weight: 600;
	font-size: 15px;
	color: var(--tr-ink);
}
.tr-navbar .navbar-nav > li > a:hover { color: var(--tr-green); background: transparent; }
.tr-navbar-cta {
	background: var(--tr-green);
	border-color: var(--tr-green);
	font-weight: 700;
	padding: 10px 20px;
	font-size: 14px;
}
.tr-navbar-cta:hover, .tr-navbar-cta:focus {
	background: var(--tr-green-dark);
	border-color: var(--tr-green-dark);
	color: #fff;
}
@media (max-width: 767px) {
	.tr-navbar-cta { display: block; float: none !important; margin: 12px 0 0; text-align: center; }
}

/* ---- Buttons & form controls — Bootstrap's defaults (34px inputs,
   6px/12px button padding) read as cramped next to our type scale, so
   we size both up consistently site-wide. ---- */
.btn {
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	padding: 12px 24px;
	font-size: 15px;
	border-radius: 10px;
	line-height: 1.4;
}
.btn-primary {
	background: var(--tr-green);
	border-color: var(--tr-green);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background: var(--tr-green-dark);
	border-color: var(--tr-green-dark);
}
.navbar-btn { margin-top: 0; }

.form-control {
	height: auto;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: 10px;
	border-color: #d7dccd;
	box-shadow: none;
}
.form-control:focus {
	border-color: var(--tr-green);
	box-shadow: 0 0 0 3px rgba(47,125,71,.15);
}
textarea.form-control { min-height: 110px; }
.form-group { margin-bottom: 18px; }
select.form-control { -webkit-appearance: none; appearance: none; }

/* ---- Hero ---- */
.tr-hero {
	position: relative;
	overflow: hidden;
	min-height: 640px;
	display: flex;
	align-items: center;
	padding: 56px 0;
}
.tr-hero-bg {
	position: absolute;
	top: -90px; left: 0; right: 0; bottom: -90px;
	background: repeating-linear-gradient(135deg, #c9d6c4 0px, #c9d6c4 18px, #b7c6b0 18px, #b7c6b0 36px);
	will-change: transform;
	z-index: 0;
}
.tr-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(20,32,20,.92) 0%, rgba(20,32,20,.78) 42%, rgba(20,32,20,.28) 100%);
	z-index: 1;
}
.tr-hero-inner { position: relative; z-index: 2; }
.tr-hero-copy h1 { color: #fff; }
.tr-hero-lead { font-size: 18px; color: #eef1ea; max-width: 560px; margin-bottom: 24px; }
.tr-accent { color: #a9d4b3; }
.tr-hero-stats { margin-top: 20px; }
.tr-hero-stats li { margin-right: 28px; color: #dbe6d6; font-size: 13px; }
.tr-hero-stats strong { display: block; font-family: 'Archivo', sans-serif; font-size: 24px; color: #fff; }

/* ---- Quote card ---- */
.tr-quote-card {
	background: #fff;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
}
.tr-quote-heading { font-size: 22px; margin-bottom: 4px; }
.tr-quote-sub { font-size: 14px; color: var(--tr-ink-soft); margin-bottom: 20px; }
.tr-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.tr-tank-size-group { margin: 0 -5px 4px; }
.tr-tank-size-group .col-xs-6 { padding: 0 5px; margin-bottom: 10px; }
.tr-tank-btn.tr-active, .tr-type-btn.tr-active {
	background: #e4ecdf;
	border-color: var(--tr-green);
	color: var(--tr-green-dark);
}
.tr-submit-btn { padding: 14px; font-size: 16px; margin-top: 4px; }
.tr-quote-footnote { font-size: 12.5px; color: var(--tr-ink-soft); margin-top: 12px; }
.tr-quote-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tr-cream-2); }
.tr-quote-label { font-size: 13px; font-weight: 700; color: var(--tr-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.tr-quote-price { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 40px; color: var(--tr-green-dark); margin: 4px 0 14px; }
.tr-quote-invalid, .tr-quote-bespoke-title { font-weight: 700; }
.tr-book-btn { background: var(--tr-green-dark); border-color: var(--tr-green-dark); color: #fff; }

/* ---- Sections ---- */
.tr-section { padding: 64px 0; }
.tr-section-tight { padding: 0 0 64px; }
/* .tr-section-intro sits on a Bootstrap .col-xs-12, which is floated —
   floated boxes ignore `margin: auto` centering, so without float:none
   this max-width just clips the column against the left edge instead of
   centering it. */
.tr-section-intro {
	float: none;
	max-width: 680px;
	margin: 0 auto 44px;
}
.tr-eyebrow { color: var(--tr-green); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.tr-eyebrow-light { color: #bcd6c0; }
.tr-lead { font-size: 16px; color: var(--tr-ink-soft); }
.tr-lead-small { font-size: 14.5px; color: var(--tr-ink-soft); }

.tr-section-cream { background: var(--tr-cream-2); }
.tr-section-dark { background: var(--tr-green-dark); color: #dfe8db; padding: 56px 0; }
.tr-section-dark h2 { color: #fff; }
.tr-stat-number { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 32px; color: #fff; margin-bottom: 4px; }
.tr-stat-label { font-size: 13.5px; color: #cfdccb; }

/* ---- Placeholder imagery ---- */
.tr-img-placeholder {
	border-radius: var(--tr-radius);
	background: repeating-linear-gradient(135deg, #dfe3d8 0px, #dfe3d8 16px, #d0d6c6 16px, #d0d6c6 32px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}
.tr-img-tall { min-height: 340px; }
.tr-img-gallery { min-height: 260px; }
.tr-img-map { min-height: 340px; margin-bottom: 24px; }
.tr-img-diagram { min-height: 260px; margin-top: 16px; }
.tr-img-rounded { border-radius: var(--tr-radius); }
.tr-placeholder-label {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #4a4f42;
	padding: 0 24px;
}
.tr-gallery-row > div { margin-bottom: 16px; }

/* ---- Service cards ---- */
.tr-service-col { margin-bottom: 28px; }
.tr-service-card {
	display: block;
	background: #fff;
	border-radius: var(--tr-radius);
	overflow: hidden;
	border: 1px solid var(--tr-cream-2);
	text-decoration: none;
	box-shadow: 0 10px 24px -18px rgba(0,0,0,.35);
	height: 100%;
}
.tr-service-card:hover { text-decoration: none; box-shadow: 0 16px 32px -18px rgba(0,0,0,.4); }
.tr-service-thumb { height: 170px; background: repeating-linear-gradient(135deg, #dfe3d8 0px, #dfe3d8 14px, #d0d6c6 14px, #d0d6c6 28px); display: flex; align-items: center; justify-content: center; }
.tr-service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-service-body { padding: 22px 24px 26px; }
.tr-service-body h2, .tr-service-body h3 { font-size: 18px; margin-bottom: 8px; }
.tr-service-body p { font-size: 14.5px; color: var(--tr-ink-soft); }
.tr-card-link { color: var(--tr-green-dark); font-weight: 700; font-size: 14px; }

/* ---- Testimonials ---- */
.tr-rating { margin: 0; }
.tr-rating-number { font-family: 'Archivo', sans-serif; font-size: 48px; font-weight: 900; color: #fff; }
.tr-stars { color: #d9b96a; }
.tr-rating-caption { color: #cfdccb; margin-bottom: 24px; }
.tr-testimonial {
	background: rgba(255,255,255,.08);
	border: none;
	border-left: none;
	border-radius: 16px;
	padding: 22px 24px;
	margin-bottom: 16px;
	color: #fff;
}
.tr-testimonial p { font-style: italic; margin-bottom: 8px; }
.tr-testimonial footer { color: #cfdccb; font-size: 13.5px; font-weight: 600; }

/* ---- Areas / towns ---- */
.tr-towns-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 30px; height: 100%; }
.tr-town-chips { margin: 0 0 20px; }
.tr-town-chips li { background: #e4ecdf; color: var(--tr-green-dark); font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: 100px; margin: 0 8px 8px 0; }
.tr-ulez-note { background: #e4ecdf; border-radius: 12px; padding: 16px 18px; font-size: 14px; color: #2c3b28; }
.tr-region-card, .tr-town-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 22px; margin-bottom: 20px; height: 100%; }

/* ---- Guide tabs ---- */
.tr-guide-tabs { border-bottom: 2px solid var(--tr-cream-2); margin-bottom: 36px; justify-content: center; display: flex; }
.tr-guide-tabs > li > a {
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 14px;
	color: var(--tr-ink-soft);
	border: none;
	background: transparent;
}
.tr-guide-tabs > li.active > a,
.tr-guide-tabs > li.active > a:hover,
.tr-guide-tabs > li.active > a:focus {
	color: var(--tr-green-dark);
	border: none;
	border-bottom: 3px solid var(--tr-green);
	background: transparent;
}
.tr-guide-tab-content h3 { font-size: 26px; }

/* ---- Accreditations ---- */
.tr-acc-col { margin-bottom: 24px; }
.tr-acc-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 22px 16px; text-align: center; height: 100%; }
.tr-acc-card-lg { padding: 32px 26px; }
.tr-acc-logo { max-width: 100%; height: auto; margin-bottom: 12px; }
.tr-acc-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.tr-acc-card h3, .tr-acc-card h2 { font-size: 15px; margin-bottom: 6px; }
.tr-acc-card p { font-size: 12.5px; color: var(--tr-ink-soft); }
.tr-acc-footnote { font-size: 13px; color: var(--tr-ink-soft); margin-top: 24px; }
.tr-kcc-band { background: var(--tr-green-dark); border-radius: var(--tr-radius); padding: 32px; color: #fff; }
.tr-kcc-band h2 { color: #fff; font-size: 18px; }
.tr-kcc-band p { color: #dfe8db; font-size: 14.5px; }

/* ---- Values / benefits / steps ---- */
.tr-value-card, .tr-benefit-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 22px; margin-bottom: 20px; height: 100%; }
.tr-step-number {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 10px;
	background: #e4ecdf; color: var(--tr-green-dark);
	font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 17px;
	margin-bottom: 10px;
}

/* ---- Pricing example cards (subscription plan) ---- */
.tr-pricing-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 22px; text-align: center; margin-bottom: 16px; }
.tr-pricing-size { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; color: var(--tr-ink-soft); margin-bottom: 6px; }
.tr-pricing-amount { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 28px; color: var(--tr-green-dark); margin: 0; }
.tr-pricing-amount span { font-size: 14px; font-weight: 600; color: var(--tr-ink-soft); }
.tr-pricing-annual { font-size: 12px; color: var(--tr-ink-soft); margin-top: 4px; }

/* ---- CTA band ---- */
.tr-cta-band { background: var(--tr-green); color: #fff; padding: 56px 0; }
.tr-cta-band h2 { color: #fff; }
.tr-cta-band p { color: #eaf0e6; margin-bottom: 24px; }
.tr-cta-btn { margin: 0 6px; font-size: 15px; padding: 12px 26px; }
.tr-cta-btn-alt { background: var(--tr-green-dark); border-color: var(--tr-green-dark); }

/* ---- Forms (Contact / Book a Service / Subscription) ---- */
.tr-page-header { padding: 56px 0 16px; text-align: center; }
.tr-form-card { background: #fff; border-radius: 18px; border: 1px solid var(--tr-cream-2); padding: 32px; }
.tr-form-divider {
	font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px; color: var(--tr-green);
	text-transform: uppercase; letter-spacing: .04em; margin: 24px 0 18px;
	padding-top: 16px; border-top: 1px solid var(--tr-cream-2);
}
.tr-optional { font-weight: 400; color: var(--tr-ink-soft); text-transform: none; }
.tr-postcode-input { max-width: 260px; }
.tr-form-footnote { font-size: 13px; color: var(--tr-ink-soft); text-align: center; margin-top: 14px; }
.tr-form-success { text-align: center; padding: 20px; }
.tr-detail-card { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--tr-cream-2); padding: 20px 22px; margin-bottom: 16px; }
.tr-detail-label { font-size: 12px; font-weight: 700; color: var(--tr-green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tr-detail-value { font-size: 17px; font-weight: 700; color: var(--tr-ink); }

.tr-customer-type-group .col-xs-6 { padding: 0 5px; }
.tr-type-btn { margin-bottom: 10px; white-space: normal; }

.tr-price-box { background: #e4ecdf; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.tr-price-placeholder { font-size: 14px; color: #2c3b28; margin: 0; }
.tr-price-label { font-size: 12.5px; font-weight: 700; color: var(--tr-green-dark); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.tr-price-amount { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 30px; color: var(--tr-green-dark); margin: 0; }
.tr-price-amount span { font-size: 15px; font-weight: 600; color: var(--tr-ink-soft); }

/* ---- Legal / generic prose pages ---- */
.tr-updated { font-size: 13.5px; color: var(--tr-ink-soft); margin-bottom: 28px; }
.tr-prose p { font-size: 15.5px; line-height: 1.75; color: #3a3d34; }
.tr-prose h2 { font-size: 20px; margin-top: 28px; }

/* ---- Footer ---- */
.tr-footer { background: #17251a; color: #c6cec0; padding: 48px 0 24px; }
.tr-footer-col { margin-bottom: 28px; }
.tr-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: 'Archivo', sans-serif; font-weight: 800; color: #fff; }
.tr-footer-heading { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.tr-footer-links { list-style: none; padding: 0; margin: 0; }
.tr-footer-links li { margin-bottom: 10px; }
.tr-footer-links a { color: #c6cec0; text-decoration: none; }
.tr-footer-links a:hover { color: #fff; }
.tr-footer-bottom { border-top: 1px solid #2a3a2c; padding-top: 20px; font-size: 12.5px; }
.tr-footer-legal a { color: #c6cec0; margin-left: 16px; font-size: 12.5px; }

/* ---- Responsive tweaks beyond Bootstrap defaults ---- */
@media (max-width: 767px) {
	h1 { font-size: 30px; }
	h2 { font-size: 24px; }
	.tr-hero { min-height: auto; padding: 40px 0; }
	.tr-hero-lead { font-size: 16px; }
	.tr-quote-card { margin-top: 24px; }
	.tr-hero-stats li { display: block; margin: 0 0 12px; }
	.tr-guide-tabs { flex-wrap: wrap; }
}

/* Widen Bootstrap's default .container (max 1170px) to match the design,
   which was built around a ~1360px content width on large screens. */
@media (min-width: 1200px) {
	.container { width: 1320px; }
}
@media (min-width: 1400px) {
	.container { width: 1360px; }
}
