/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ==============================
   1. Typography
   ============================== */

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', sans-serif;
  color: #003580;
  line-height: 1.2;
  letter-spacing: -0.25px; /* subtle tightening */
  margin: 0 0 15px 0;
}

h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 600; }

/* Base Sizes (Desktop / Large Screens) */
h1 { font-size: 48px; }
h2 { font-size: 38px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }

/* Featured Section Headlines (Front Page) */
.featured h1 {
	font-size: 42px;
	color: #000;
	font-family: 'Work Sans', sans-serif;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.5px;
	margin-bottom: 10px;
}
.featured h2 {
	font-size: 32px;
	font-family: 'Satisfy', cursive;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: 10px;
}
.featured i {
	color: #003580;
	font-weight: 400;
	font-size: 42px !important;
	margin-bottom: 10px;
}
/* Featured subtitle links */
.featured h2 a {
  color: #003580;        /* match featured subtitle color */
  text-decoration: none; /* no underline */
  transition: color 0.3s ease;
}

.featured h2 a:hover {
  color: #d9b310;        /* site yellow on hover */
}

/* Responsive Headings */
@media (max-width: 1024px) {
  h1 { font-size: 40px; line-height: 1.25; letter-spacing: -0.2px; }
  h2 { font-size: 34px; line-height: 1.3; letter-spacing: -0.2px; }
  h3 { font-size: 28px; line-height: 1.3; }
  h4 { font-size: 20px; line-height: 1.35; }

  .featured h1 { font-size: 28px; line-height: 1.2; }
  .featured h2 { font-size: 26px; line-height: 1.2; }
  .featured i   { font-size: 36px; }
}
@media (max-width: 768px) {
  h1 { font-size: 32px; line-height: 1.3; letter-spacing: -0.15px; }
  h2 { font-size: 28px; line-height: 1.35; letter-spacing: -0.15px; }
  h3 { font-size: 22px; line-height: 1.4; }
  h4 { font-size: 18px; line-height: 1.45; }

  .featured h1 { font-size: 24px; line-height: 1.3; letter-spacing: -0.1px; }
  .featured h2 { font-size: 20px; line-height: 1.3; }
  .featured i   { font-size: 28px; }
}

/* ==============================
   2. Cards
   ============================== */

/* Section Wrapper */
.featured-wrapper {
	max-width: 100% !important;
	margin: 0 auto 40px auto !important;
	padding: 0 20px !important;
}
@media (max-width: 1024px) {
  .featured-wrapper { max-width: 95%; padding: 0 15px; }
}
@media (max-width: 768px) {
  .featured-wrapper { max-width: 100%; padding: 0 10px; }
}

/* Generic Card Base */
.card,
.trip-card,
.dest-card,
.team-card,
.blog-card { /* applies to all card types */
	background: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 4px;
	text-align: left;
	position: relative; /* needed for overlay positioning */
}

/* Card Images */
.card img,
.trip-card img,
.dest-card img,
.team-card img,
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Card Titles */
.card h3,
.trip-card h3,
.dest-card h3,
.team-card h3,
.blog-card h3 {
  font-size: 18px;
  margin: 12px 10px 6px 10px;
  font-weight: 600;
  color: #000;
}

/* Blog Archive Special Title (Overlay) */
.archive-card .blog-card-title {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  font-size: 20px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  margin: 0;
  z-index: 2;
}

/* Card Paragraphs */
.card p,
.trip-card p,
.dest-card p,
.team-card p,
.blog-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 6px 10px 12px 10px;
  text-align: left;
}

/* Prices (with dividers) */
.card .price,
.trip-card .price {
  font-weight: bold;
  margin: 12px auto;
  text-align: center;
  color: #000;
}
.card .price::before,
.card .price::after,
.trip-card .price::before,
.trip-card .price::after {
  content: "";
  display: block;
  height: 1px;
  background: #ccc;
  margin: 6px auto;
  width: 80%;
}

/* Buttons */
.card-btn,
.trip-card-btn,
.blog-card-btn,
.dest-card-btn {
  margin: 12px auto 16px auto;
  padding: 8px 16px;
  background: #d9b310;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.3s ease;
  border-radius: 4px;
  text-align: center;
  display: inline-block;
}
.card-btn:hover,
.trip-card-btn:hover,
.blog-card-btn:hover,
.dest-card-btn:hover {
  background: #2e9cca;
  color: #fff !important;
}

/* Align price + button at the bottom */
.card-body,
.trip-card-body,
.dest-card-body,
.team-card-body,
.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .price,
.trip-card-body .price,
.dest-card-body .price,
.team-card-body .price,
.blog-card-body .price,
.card-body .card-btn,
.trip-card-body .trip-card-btn,
.dest-card-body .dest-card-btn,
.team-card-body .team-card-btn,
.blog-card-body .blog-card-btn {
  margin-top: auto;
}
.card-footer {
  margin-top: auto; /* pushes price+button group to bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==============================
   3. Sidebar Widgets
   ============================== */

/* Space between widgets (cards) in GP sidebars */
.widget .sidebar-featured-trip .trip-card { margin-bottom: 20px; }
.widget .sidebar-card { margin-bottom: 20px; }

/* Keep the "Today’s Featured Vacation" title inside the card clean */
.sidebar-featured-trip .trip-card > .section-title {
  margin: 20px 16px 10px;   /* breathing room */
  padding: 0;               /* no underline for this variant */
  border: none;
  font-size: 24px;
  font-weight: 600;
  color: #003580;
  text-align: center;
}

/* Archive accordion look */
.sidebar-archives .archive-year { border-bottom: 1px solid #eee; }
.sidebar-archives .archive-year:last-child { border-bottom: none; }

.sidebar-archives .archive-year-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: #003580;
  cursor: pointer;
}
.sidebar-archives .archive-year-toggle:hover { color: #2e9cca; }

.sidebar-archives .year-label { font-weight: 700; }
.sidebar-archives .year-count { color: #666; margin-left: 8px; }
.sidebar-archives .year-caret { margin-left: 12px; }

.sidebar-archives .archive-posts { list-style: none; margin: 0 0 10px 0; padding: 0 0 6px 0; }
.sidebar-archives .archive-posts li { padding: 6px 0; border-bottom: 1px solid #f2f2f2; }
.sidebar-archives .archive-posts li:last-child { border-bottom: 0; }
.sidebar-archives .archive-posts a { text-decoration: none; color: #000; }
.sidebar-archives .archive-posts a:hover { color: #2e9cca; }