/*
Theme Name:   GCB Custom
Theme URI:    https://golfclubbrokers.com
Author:       Golf Club Brokers
Author URI:   https://golfclubbrokers.com
Description:  A lean custom theme for GCB blog + site
Version:      1.0
License:      GNU General Public License v2 or later
Text Domain:  gcb-custom
*/

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}
a { color: #ff7f00; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 1. Global & typography */
body, button, input, select, textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
h1, h2, h3, h4, h5, h6, .entry-title {
  font-family: 'Merriweather', serif;
  color: #222;
}
:root {
  --gcb-accent: #ff7f00;
}

/* 2. Archive page header */
.archive .site-inner .archive-description {
  text-align: center;
  margin-bottom: 3rem;
}
.archive .site-inner .archive-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

/* 3. Post grid container */
.archive .site-inner .content .wrap .entry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  grid-gap: 2rem;
  margin-bottom: 4rem;
}

/* 4. Card styling */
.archive .site-inner .content .wrap .entry .post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.archive .site-inner .content .wrap .entry .post:hover {
  transform: translateY(-4px);
}

/* 5. Featured image & category badge */
.archive .site-inner .content .wrap .entry .post-thumbnail {
  position: relative;
}
.archive .site-inner .content .wrap .entry .post-thumbnail img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.archive .site-inner .content .wrap .entry .cat-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gcb-accent);
  color: #fff;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* 6. Title & excerpt */
.archive .site-inner .content .wrap .entry .entry-header {
  padding: 1rem;
}
.archive .site-inner .content .wrap .entry .entry-header .entry-title a {
  font-size: 1.5rem;
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}
.archive .site-inner .content .wrap .entry .entry-header .entry-title a:hover {
  color: var(--gcb-accent);
}
.archive .site-inner .content .wrap .entry .entry-summary {
  margin: 0 1rem 1rem;
  color: #666;
  line-height: 1.6;
}
.archive .site-inner .content .wrap .entry .read-more {
  display: block;
  margin: 0 1rem 1rem;
  font-weight: 600;
  color: var(--gcb-accent);
}

/* 7. Single-post adjustments */
.single .site-inner {
  max-width: 800px;
  margin: auto;
  padding: 3rem 1rem;
}
.single .entry-header .entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.single .entry-header .post-thumbnail {
  margin-bottom: 2rem;
}
.single .entry-content {
  line-height: 1.8;
  font-size: 1.125rem;
}
.single .entry-content img {
  max-width: 100%;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
}
.single .entry-content h2,
.single .entry-content h3 {
  margin: 2rem 0 1rem;
}

:root {
  --gcb-green: #005A3C;
}

/* Two-column wrapper used by index, front-page, archive, category, etc. */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-gap: 2rem;
}

/* Main area inside that wrapper */
.main-content { }

/* Sidebar inside that wrapper */
.sidebar {
  position: sticky;
  top: 2rem;
}

/* Widget styling */
.hp-widget { margin-bottom: 2rem; }
.hp-widget-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gcb-green);
}

/* Tidy up the menu like Sweetwater’s */
/* Light gray background, black text, GCB green hover */
.primary-nav {
  background: #f5f5f5;
}
.primary-nav ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.primary-nav li {
  margin: 0 1rem;
}
.primary-nav a {
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--gcb-green);
  border-bottom-color: var(--gcb-green);
}

/* Links and “read more” use your green accent */
a, .read-more { color: var(--gcb-green) !important; }
:root {
  --gcb-green: #005A3C;
}

/* Archive title */
.archive-header {
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}
.archive-title {
  font-size: 2.25rem;
  margin: 0;
  color: #222;
}

/* Two-column layout */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-gap: 2rem;
}

/* Post list styling */
.main-content article {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.main-content article:last-child {
  border-bottom: none;
}
.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-content {
  display: flex;
  flex-direction: column;
}
.post-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}
.entry-title {
  font-size: 1.5rem;
  margin: 0.25rem 0;
  line-height: 1.2;
}
.entry-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
.entry-title a:hover {
  color: var(--gcb-green);
}
.entry-summary {
  flex: 1;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gcb-green);
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}
.pagination .current {
  background: var(--gcb-green);
  color: #fff;
  border-color: var(--gcb-green);
}

/* Sidebar (unchanged) */
.sidebar {
  position: sticky;
  top: 2rem;
}

/* Menu active state (underline on current) */
.primary-nav .current-menu-item > a {
  border-bottom: 3px solid var(--gcb-green);
}
.site-logo {
  text-align: center;
  margin: 1rem 0;
}
.site-logo img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
/* 1. Make header, nav and content share the same container */
.site-header .wrap,
.primary-nav .wrap,
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* same horizontal padding everywhere */
}

/* 2. Remove extra spacing around the header */
.site-header {
  padding-top: 0;
  padding-bottom: 0;
}

/* 3. Left-align the logo */
.site-logo {
  text-align: left !important;
  margin: 0 !important;
}
.site-logo img {
  display: block;
  margin: 0;
  max-width: 240px;
  height: auto;
}

/* 4. Tidy up the menu wrapper */
.primary-nav {
  background: #f5f5f5;
  padding: 0;            /* remove default padding */
  margin: 0;             /* remove default margins */
}

/* 5. Align menu links flush with the left of .content-layout */
.primary-nav ul {
  display: flex;
  justify-content: flex-start;
  margin: 0;    /* remove any auto-centering */
  padding: 0.5rem 0;
}
.primary-nav li {
  margin: 0 1rem 0 0;
}
.primary-nav a {
  color: #000;
  padding: 0.25rem 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--gcb-green);
  border-bottom-color: var(--gcb-green);
}
/* ———————————————————————————————————————————
   1. Extra left padding on the menu bar
   ——————————————————————————————————————————— */
.primary-nav {
  /* push the links in from the edge */
  padding-left: 2rem; 
}

/* ———————————————————————————————————————————
   2. Global font stack to match Shopify template
   ——————————————————————————————————————————— */
body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Make headings match, too */
h1, h2, h3, h4, h5, h6,
.entry-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Hide all social share buttons/containers */
.sharedaddy,
.share-this,
.share-buttons,
.sharing-links,
.social-share {
  display: none !important;
}
/* Ensure all thumbnails fill the slot */
.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* If you need to distinguish the default for styling */
.default-thumb {
  opacity: 0.8;
  /* e.g. grayscale: */
  /* filter: grayscale(20%); */
}
/* ───────────────────────────────────────────────────────────
   Force thumbnails into a uniform 3:2 box
   ─────────────────────────────────────────────────────────── */
.post-thumb {
  /* match your grid column width */
  width: 180px;
  /* 3:2 aspect ratio → height = width × 2/3 */
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0; /* light placeholder color while img loads */
}

.post-thumb img {
  /* fill the box */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hide Pinterest “Save” hover button */
.pinit-hover-button,
.pinit-button,
a[href*="pinterest.com/pin/create"] {
  display: none !important;
}
/*──────────────────────────────────────────────────
1. Hide featured images on single-post pages
──────────────────────────────────────────────────*/
.single .featured-image,
.single .post-thumb {
  display: none !important;
}

/*──────────────────────────────────────────────────
2. Revert article grid on single posts
   (so text uses the full width of main-content)
──────────────────────────────────────────────────*/
.single .main-content article {
  display: block !important;
  padding: 0 !important;
  border: none !important;
}

/* Ensure your content and headers span full width */
.single .entry-header,
.single .entry-content {
  margin: 0;
  padding: 0 1rem; /* match your content padding */
}

/*──────────────────────────────────────────────────
3. Only apply the 180px × 1fr grid on listing pages
   (home & archive bodies)
──────────────────────────────────────────────────*/
.home .main-content article,
.archive .main-content article {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.home .main-content article:last-child,
.archive .main-content article:last-child {
  border-bottom: none;
}
:root {
  --gcb-green: #005A3C;
}

/* ───────────────────────────────────────────────────────────
   1. Align header/nav/content with same left inset
   ─────────────────────────────────────────────────────────── */
.site-header .wrap,
.primary-nav,
.content-layout {
  padding-left: 2rem;  /* same inset everywhere */
  padding-right: 1rem; /* keep right gutter */
}

/* ───────────────────────────────────────────────────────────
   2. Single-post grid: 3fr main + 1fr sidebar
   ─────────────────────────────────────────────────────────── */
.single .content-layout {
  display: grid !important;
  grid-template-columns: 3fr 1fr;
  grid-gap: 2rem;
}

/* ───────────────────────────────────────────────────────────
   3. Super-size the title & left-align it
   ─────────────────────────────────────────────────────────── */
.single .entry-header .entry-title {
  font-size: 3rem;       /* match Sweetwater’s big titles */
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
  text-align: left;
  color: #222;
}

/* ───────────────────────────────────────────────────────────
   4. Post meta styling
   ─────────────────────────────────────────────────────────── */
.single .post-meta,
.single .entry-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────────────────
   5. Entry content typography
   ─────────────────────────────────────────────────────────── */
body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}
.single .entry-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.single .entry-content h2,
.single .entry-content h3 {
  margin: 2rem 0 1rem;
}

/* ───────────────────────────────────────────────────────────
   6. Featured image (if you decide to show one) styling
   ─────────────────────────────────────────────────────────── */
.single .featured-image img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 4px;
}

/* ───────────────────────────────────────────────────────────
   7. Ensure sidebar stays sticky
   ─────────────────────────────────────────────────────────── */
.single .sidebar {
  position: sticky;
  top: 2rem;
}
/* ───────────────────────────────────────────────────────────
   Tweak header padding & enlarge logo
   ─────────────────────────────────────────────────────────── */
.site-header {
  /* add 1rem (16px) above and below the logo */
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.site-logo {
   padding-bottom: 1rem !important;
}
.site-logo img {
  /* bump the max‐width from 240px up to 280px */
  max-width: 280px !important;
  height: auto;
}
/* ───────────────────────────────────────────────────────────
   Align logo and menu flush‐left in a shared container
   ─────────────────────────────────────────────────────────── */
.site-header .wrap,
.primary-nav {
  max-width: 1200px;       /* match your content width */
  margin: 0 auto;          /* center container */
  padding: 0 2rem;         /* left/right inset */
}

/* Ensure the logo sits at the very start of that inset */
.site-logo {
  text-align: left;
  margin: 0;
}
.site-logo img {
  display: block;
  margin: 0;
  max-width: 280px;        /* or whatever size you prefer */
  height: auto;
}

/* Build the nav as a flex row so items start flush at the same inset */
.primary-nav ul {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.primary-nav li {
  margin-right: 1.5rem;    /* space between links */
}
.primary-nav a {
  padding: 0.5rem 0;       /* vertical padding for click area */
}
/* ───────────────────────────────────────────────────────────
   Nav bar fixed height & vertically centered links
   ─────────────────────────────────────────────────────────── */
.primary-nav {
  background: #f5f5f5;    /* keep your light gray */
  height: 3rem;           /* adjust this to your desired nav height */
}

/* Use flex on the wrap to center the UL vertically and keep it centered horizontally */
.primary-nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;        /* same inset you’ve been using */
  display: flex;
  justify-content: center;  /* centers the UL horizontally */
  align-items: center;      /* centers the UL vertically within the 4rem */
  height: 100%;
}

/* Ensure UL and LIs still flex row for the links */
.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
}
.primary-nav li {
  margin: 0 1.5rem;
}
.primary-nav {
  background: #f5f5f5;
  height: 3rem; /* total nav height */
}

/* The wrap becomes a flex container and centers its children */
.primary-nav .wrap {
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;            /* ensure it spans the full 4rem */
}

/* Make the UL also a flex row that fills the wrap */
.primary-nav ul {
  display: flex;
  align-items: center;     /* vertical centering inside the wrap */
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Links get no vertical padding—only horizontal spacing */
.primary-nav li a {
  display: block;
  padding: 0 0rem;         /* adjust left/right spacing as needed */
  line-height: normal;     /* let flex alignment handle vertical centering */
  height: auto;
}