/*
Theme Name: Bluegen Custom
Theme URI: https://bluegen.co.uk
Author: Squared Away Digital
Description: Custom lightweight theme for Bluegen Technology. Ink/blue "blueprint" design system, built to avoid fighting a block theme's own CSS layers and root-padding constraints.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bluegen-custom
*/

html, body { margin:0; padding:0; }
* { box-sizing:border-box; }
a { color:inherit; }
img { max-width:100%; height:auto; }

  .bg-page{
    --ink:#0F2A47;
    --blue:#2C6CA6;
    --line:#9FC6DE;
    --paper:#F2F4EF;
    --paper-dim:#E6E9E1;
    --green:#3FA66B;
    --amber:#E0912E;
    --white:#FFFFFF;
    --radius:2px;

    background:var(--paper);
    color:var(--ink);
    font-family:'Newsreader', Georgia, serif;
    font-size:17px;
    line-height:1.6;
    margin:0;
  }
  .bg-page *{box-sizing:border-box;}
  .bg-page h1,.bg-page h2,.bg-page h3,.bg-page .bg-display{
    font-family:'Space Grotesk', sans-serif;
    font-weight:700;
    letter-spacing:-0.01em;
    margin:0;
  }
  .bg-page .bg-mono{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.04em;
    text-transform:uppercase;
  }
  .bg-page a{color:inherit;}
  .bg-page .bg-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 32px;
  }


  /* ---------- content width for real WordPress blocks ----------
     Since this is now our own theme (not fighting another theme's
     layout system), width is handled the standard classic-theme
     way: normal blocks get a comfortable reading width, and any
     block the editor sets to "Wide" or "Full width" is allowed to
     escape it. WordPress's own core CSS handles the full-bleed
     maths for alignfull automatically once the theme declares
     add_theme_support('align-wide'), so nothing custom is needed
     for that part. */
  .bg-page .entry-content > *{
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
    padding-left:32px;
    padding-right:32px;
    box-sizing:border-box;
  }
  .bg-page .entry-content > .alignwide{
    max-width:1400px;
  }
  .bg-page .entry-content > .alignfull{
    max-width:none;
    padding-left:0;
    padding-right:0;
  }

  /* ---------- native block styling ----------
     Makes real Heading / Paragraph / Buttons / List / Columns /
     Group blocks match the design automatically, so editing a
     page in the normal WordPress editor "just works" without
     needing any custom HTML. */
  .bg-page .wp-block-button__link{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    border-radius:var(--radius);
    padding:14px 22px;
    text-decoration:none;
    display:inline-block;
    background:var(--ink);
    color:var(--paper);
    border:none;
  }
  .bg-page .wp-block-button.bg-btn-primary .wp-block-button__link{
    background:var(--line); color:var(--ink);
  }
  .bg-page .wp-block-button.bg-btn-primary .wp-block-button__link:hover{background:var(--white);}
  .bg-page .wp-block-button.bg-btn-ghost .wp-block-button__link{
    background:transparent; border:1px solid rgba(207,224,236,0.4); color:var(--paper);
  }
  .bg-page .wp-block-button.bg-btn-ghost .wp-block-button__link:hover{border-color:var(--paper);}
  .bg-page .wp-block-button.bg-btn-dark .wp-block-button__link:hover{background:var(--blue);}
  .bg-page .wp-block-buttons{gap:16px; margin-top:12px;}
  .bg-page .wp-block-list{
    margin:12px 0 0;
    padding-left:18px;
    font-size:14px;
    color:#3c4a55;
  }
  .bg-page .wp-block-list li{margin-bottom:4px;}
  .bg-page .wp-block-columns{gap:20px;}
  .bg-page h4.wp-block-heading,
  .bg-page h5.wp-block-heading,
  .bg-page h6.wp-block-heading{
    font-family:'Space Grotesk', sans-serif;
    font-weight:700;
  }



  /* ---------- status strip (ticker) ---------- */
  .bg-page .bg-status-strip{
    background:var(--ink);
    color:var(--paper);
    overflow:hidden !important;
    white-space:nowrap !important;
    border-bottom:1px solid #1c3f63;
  }
  .bg-page .bg-status-strip__track{
    display:inline-block !important;
    white-space:nowrap !important;
    padding:8px 0;
    font-size:11px;
    font-family:'IBM Plex Mono', monospace;
    animation:bg-ticker 28s linear infinite;
  }
  @keyframes bg-ticker{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }
  .bg-page .bg-status-strip__track span{
    padding:0 28px;
    display:inline-flex !important;
    white-space:nowrap;
    align-items:center;
    gap:8px;
  }
  .bg-page .bg-dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--green);
    display:inline-block;
    box-shadow:0 0 0 3px rgba(63,166,107,0.18);
  }
  .bg-page .bg-dot.amber{background:var(--amber); box-shadow:0 0 0 3px rgba(224,145,46,0.18);}

  /* ---------- site header / nav ---------- */
  .bg-page header.bg-site-header{
    background:var(--paper);
    border-bottom:1px solid var(--paper-dim);
  }
  .bg-page .bg-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 32px;
    max-width:1180px;
    margin:0 auto;
    flex-wrap:wrap;
    gap:16px;
  }
  .bg-page .bg-logo{
    font-family:'Space Grotesk', sans-serif;
    font-weight:700;
    font-size:22px;
    letter-spacing:-0.02em;
    display:flex;
    align-items:baseline;
    gap:2px;
    text-decoration:none;
  }
  .bg-page .bg-logo::after{
    content:"";
    width:7px;height:7px;
    background:var(--blue);
    display:inline-block;
    margin-left:6px;
    border-radius:1px;
  }
  .bg-page .bg-nav-links{
    display:flex;
    gap:34px;
    list-style:none;
    margin:0;padding:0;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.06em;
    text-transform:uppercase;
  }
  .bg-page .bg-nav-links a{
    text-decoration:none;
    color:var(--ink);
    border-bottom:1px solid transparent;
    padding-bottom:2px;
    transition:border-color .2s ease;
  }
  .bg-page .bg-nav-links a:hover,
  .bg-page .bg-nav-links a.is-active{border-color:var(--blue); outline:none;}
  .bg-page .bg-nav-cta{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    background:var(--ink);
    color:var(--paper);
    padding:10px 18px;
    text-decoration:none;
    border-radius:var(--radius);
  }
  .bg-page .bg-nav-cta:hover{background:var(--blue);}
  @media (max-width:900px){
    .bg-page .bg-nav-links{display:none;}
  }

  /* ---------- page hero ---------- */
  .bg-page .bg-pagehero{
    background:var(--ink);
    color:var(--paper);
    position:relative;
    overflow:hidden;
    background-image:
      linear-gradient(rgba(159,198,222,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(159,198,222,0.08) 1px, transparent 1px);
    background-size:36px 36px;
  }
  .bg-page .bg-pagehero-inner{
    max-width:1180px;
    margin:0 auto;
    padding:64px 32px 56px;
  }
  .bg-page .bg-eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.12em;
    color:var(--line);
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
  }
  .bg-page .bg-eyebrow .bg-rule{width:32px;height:1px;background:var(--line);}
  .bg-page .bg-pagehero h1{
    font-size:42px;
    line-height:1.1;
    color:var(--white);
    max-width:20ch;
  }
  .bg-page .bg-pagehero p{
    font-family:'Newsreader', serif;
    font-size:17px;
    color:#CFE0EC;
    max-width:60ch;
    margin-top:18px;
  }

  /* ---------- buttons ---------- */
  .bg-page .bg-btn{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    text-decoration:none;
    padding:14px 22px;
    border-radius:var(--radius);
    display:inline-block;
  }
  .bg-page .bg-btn-primary{background:var(--line); color:var(--ink);}
  .bg-page .bg-btn-primary:hover{background:var(--white);}
  .bg-page .bg-btn-ghost{border:1px solid rgba(207,224,236,0.4); color:var(--paper);}
  .bg-page .bg-btn-ghost:hover{border-color:var(--paper);}
  .bg-page .bg-btn-dark{background:var(--ink); color:var(--paper);}
  .bg-page .bg-btn-dark:hover{background:var(--blue);}
  .bg-page .bg-hero-actions{margin-top:30px; display:flex; gap:16px; flex-wrap:wrap;}

  /* ---------- section shell ---------- */
  .bg-page section{padding:72px 0;}
  .bg-page .bg-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:44px;
    border-bottom:1px solid var(--paper-dim);
    padding-bottom:22px;
  }
  .bg-page .bg-section-head h2{font-size:30px;}
  .bg-page .bg-section-head .bg-mono{font-size:12px; color:var(--blue);}
  .bg-page .bg-section-note{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:#6b7b87;
    max-width:34ch;
    text-align:right;
  }

  /* ---------- services ---------- */
  .bg-page .bg-service-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--paper-dim);
    border:1px solid var(--paper-dim);
  }
  .bg-page .bg-service-card{
    background:var(--paper);
    padding:32px 28px;
    position:relative;
  }
  .bg-page .bg-service-card .bg-idx{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--blue);
    display:block;
    margin-bottom:18px;
  }
  .bg-page .bg-service-card h3{font-size:19px; margin-bottom:10px;}
  .bg-page .bg-service-card p{font-size:15px; color:#3c4a55; margin:0;}
  .bg-page .bg-service-card ul{margin:12px 0 0; padding-left:18px; font-size:14px; color:#3c4a55;}
  .bg-page .bg-service-card li{margin-bottom:4px;}

  /* ---------- special projects (dark) ---------- */
  .bg-page .bg-dark-section{background:var(--ink); color:var(--paper);}
  .bg-page .bg-dark-section .bg-section-head{border-color:#1c3f63;}
  .bg-page .bg-dark-section .bg-section-head .bg-mono{color:var(--line);}
  .bg-page .bg-dark-section .bg-section-note{color:#7f97a8;}

  .bg-page .bg-project-panel{
    display:grid;
    grid-template-columns:0.8fr 1.2fr;
    gap:0;
    border:1px solid #1c3f63;
    margin-bottom:24px;
  }
  .bg-page .bg-project-panel:last-child{margin-bottom:0;}
  .bg-page .bg-project-visual{
    background:
      linear-gradient(rgba(159,198,222,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(159,198,222,0.06) 1px, transparent 1px);
    background-size:22px 22px;
    background-color:#132C48;
    padding:28px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    border-right:1px solid #1c3f63;
    min-height:220px;
  }
  .bg-page .bg-project-visual .bg-tag{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--green);
    display:flex;
    align-items:center;
    gap:8px;
  }
  .bg-page .bg-project-visual .bg-placeholder-frame{
    border:1px dashed #4F7DA3;
    padding:14px;
    font-family:'IBM Plex Mono', monospace;
    font-size:10.5px;
    color:#7f97a8;
    text-align:center;
  }
  .bg-page .bg-project-visual .bg-project-img{
    width:100%;
    flex:1;
    min-height:0;
    object-fit:cover;
    border-radius:var(--radius);
    border:1px solid #1c3f63;
    display:block;
  }
  .bg-page .bg-project-body{padding:36px 40px;}
  .bg-page .bg-project-body .bg-idx{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--line);
    display:block;
    margin-bottom:14px;
  }
  .bg-page .bg-project-body h3{font-size:24px; color:var(--white); margin-bottom:12px;}
  .bg-page .bg-project-body p{color:#CFE0EC; font-size:15.5px; max-width:58ch;}
  .bg-page .bg-spec-row{
    display:flex;
    gap:32px;
    margin-top:22px;
    flex-wrap:wrap;
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
  }
  .bg-page .bg-spec-row div span{
    display:block;
    color:#5f7b91;
    margin-bottom:4px;
    text-transform:uppercase;
    letter-spacing:0.06em;
  }
  .bg-page .bg-spec-row div strong{
    color:var(--paper);
    font-weight:500;
    font-size:12.5px;
  }
  @media (max-width:860px){
    .bg-page .bg-project-panel{grid-template-columns:1fr;}
    .bg-page .bg-project-visual{border-right:none; border-bottom:1px solid #1c3f63;}
  }

  /* ---------- venues ---------- */
  .bg-page .bg-venue-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    max-width:760px;
    gap:20px;
  }
  .bg-page .bg-venue-card{
    border:1px solid var(--paper-dim);
    padding:26px;
    background:var(--white);
  }
  .bg-page .bg-venue-card .bg-mono{font-size:11px; color:var(--blue); display:block; margin-bottom:12px;}
  .bg-page .bg-venue-card h3{font-size:18px; margin-bottom:8px;}
  .bg-page .bg-venue-card p{font-size:14.5px; color:#3c4a55; margin:0;}
  .bg-page .bg-venue-card ul{margin:12px 0 0; padding-left:18px; font-size:13.5px; color:#3c4a55;}

  /* ---------- epos ---------- */
  .bg-page .bg-epos-section{background:var(--paper-dim);}
  .bg-page .bg-epos-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
  }
  .bg-page .bg-epos-card{
    background:var(--white);
    border:1px solid #d8ddd2;
    padding:34px;
  }
  .bg-page .bg-epos-card .bg-mono{font-size:11px; color:var(--amber);}
  .bg-page .bg-epos-card h3{font-size:22px; margin:12px 0 10px;}
  .bg-page .bg-epos-card p{font-size:15px; color:#3c4a55;}

  .bg-page .bg-feature-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:var(--paper-dim);
    border:1px solid var(--paper-dim);
    margin-top:24px;
  }
  .bg-page .bg-feature-cell{background:var(--white); padding:22px 20px;}
  .bg-page .bg-feature-cell .bg-mono{font-size:10.5px; color:var(--blue); display:block; margin-bottom:8px;}
  .bg-page .bg-feature-cell strong{font-family:'Space Grotesk',sans-serif; font-size:15px; display:block; margin-bottom:6px;}
  .bg-page .bg-feature-cell span.desc{font-size:13.5px; color:#3c4a55;}

  /* ---------- contact / cta ---------- */
  .bg-page .bg-cta{
    background:var(--ink);
    color:var(--paper);
    text-align:center;
  }
  .bg-page .bg-cta h2{font-size:32px; color:var(--white); max-width:24ch; margin:0 auto 16px;}
  .bg-page .bg-cta p{color:#CFE0EC; max-width:48ch; margin:0 auto 30px;}

  /* ---------- responsive ---------- */
  @media (max-width:900px){
    .bg-page .bg-pagehero h1{font-size:32px;}
    .bg-page .bg-service-grid{grid-template-columns:1fr;}
    .bg-page .bg-venue-list{grid-template-columns:1fr;}
    .bg-page .bg-epos-grid{grid-template-columns:1fr;}
    .bg-page .bg-feature-strip{grid-template-columns:1fr 1fr;}
    .bg-page .bg-section-head{flex-direction:column; align-items:flex-start;}
    .bg-page .bg-section-note{text-align:left;}
  }
