/*
Theme Name: WebCorner
Theme URI: https://webcorner.org.uk
Author: WebCorner
Author URI: https://webcorner.org.uk
Description: Custom professional portfolio theme for WebCorner — Online Business Support Specialist. Features a modern dark navy design with mint accents, bento grid layout, light/dark mode toggle, and fully responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webcorner
Tags: portfolio, business, dark, responsive, custom-colors
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — DARK MODE (default)
   ============================================================ */
:root {
  --navy:       #0B1628;
  --navy2:      #0F1E38;
  --navy3:      #162644;
  --navy4:      #1E3358;
  --mint:       #3DDBA8;
  --mint2:      #6EECC0;
  --muted:      #7AA49C;
  --text:       #FFFFFF;
  --text2:      #C8DCF0;
  --off:        #F0FFF8;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --bg:         #0B1628;
  --bg-card:    #0F1E38;
  --bg-inner:   #162644;
  --bg-hover:   #1E3358;
  --nav-bg:     rgba(11,22,40,0.92);
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme="light"] {
  --navy:       #F4F6FB;
  --navy2:      #FFFFFF;
  --navy3:      #F0F4FF;
  --navy4:      #E4ECFF;
  --mint:       #1FB888;
  --mint2:      #17A077;
  --muted:      #5A7A8A;
  --text:       #0D1F2D;
  --text2:      #2D4A5A;
  --off:        #003322;
  --border:     rgba(0,0,0,0.08);
  --border2:    rgba(0,0,0,0.14);
  --bg:         #F4F6FB;
  --bg-card:    #FFFFFF;
  --bg-inner:   #F0F4FF;
  --bg-hover:   #E4ECFF;
  --nav-bg:     rgba(244,246,251,0.95);
  --shadow:     0 4px 24px rgba(0,0,0,0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint2);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--mint2);
  display: block;
}

.btn-main {
  background: var(--mint);
  color: #0B1628;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-main:hover {
  background: var(--mint2);
  transform: translateY(-2px);
  color: #0B1628;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-outline:hover {
  border-color: var(--mint2);
  color: var(--mint2);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #0B1628;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--mint);
  color: #0B1628 !important;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--mint2);
  transform: translateY(-1px);
}

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-inner);
  border: 1px solid var(--border2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--mint);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
  transition: fill var(--transition);
}

.theme-toggle:hover svg {
  fill: var(--mint);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 400px;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover {
  color: var(--mint);
  background: var(--bg-inner);
}

.mobile-nav a.mobile-cta {
  color: var(--mint);
  font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 4rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint2);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s forwards;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint2);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.2s forwards;
}

.hero h1 span {
  color: var(--mint2);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s 0.4s forwards;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-wrap {
  padding: 0 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.b-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s, transform 0.55s, border-color var(--transition), background var(--transition);
}

.b-card.visible {
  opacity: 1;
  transform: none;
}

.b-card:hover {
  border-color: var(--border2);
}

/* Grid column spans */

.b-services{ grid-column: span 12; }
.b-about   { grid-column: span 5; }
.b-projects{ grid-column: span 7; }
.b-cta     { grid-column: span 12; }

/* Stat card */
.stat-num {
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-num sup {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mint2);
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Services grid */
.b-services h2 {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.svc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.svc-item:hover {
  border-color: rgba(61, 219, 168, 0.35);
  background: var(--bg-hover);
}

.svc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(61, 219, 168, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 2px;
}

.svc-item h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0;
}

.svc-item p {
  font-size: 0.71rem;
  color: var(--muted);
  line-height: 1.5;
}

/* About card */
.b-about h2 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.b-about p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(61, 219, 168, 0.1);
  border: 1px solid rgba(61, 219, 168, 0.25);
  color: var(--mint2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Projects card */
.b-projects h2 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.proj-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.proj-item:hover {
  border-color: rgba(61, 219, 168, 0.35);
  background: var(--bg-hover);
}

.proj-thumb {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}

.thumb-elite { background: linear-gradient(135deg, #0F3D2E, #1A6B4A); }
.thumb-plumb { background: linear-gradient(135deg, #0D2E3D, #1A5A6B); }
.thumb-tech  { background: linear-gradient(135deg, #2A1A3D, #4A2A6B); }

.proj-info { flex: 1; min-width: 0; }

.proj-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-info p {
  font-size: 0.75rem;
  color: var(--muted);
}

.proj-pills { display: flex; gap: 0.35rem; flex-shrink: 0; }

.proj-pill {
  font-size: 0.65rem;
  font-weight: 500;
  background: rgba(61, 219, 168, 0.1);
  color: var(--mint2);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(61, 219, 168, 0.2);
  white-space: nowrap;
}

.proj-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.proj-item:hover .proj-arrow { color: var(--mint2); }

/* CTA card */
.b-cta {
  background: var(--bg-inner) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.b-cta h2 {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
}

.b-cta p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  transition: background var(--transition);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.footer-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0B1628;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignright  { float: right; margin-left: 1.5rem; }
.alignleft   { float: left;  margin-right: 1.5rem; }
.wp-caption  { max-width: 100%; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .b-stat     { grid-column: span 4; }
  .b-services { grid-column: span 8; }
  .b-about    { grid-column: span 6; }
  .b-projects { grid-column: span 6; }
  .svc-list   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger{ display: flex; }
  .mobile-nav   { display: flex; }

  .b-stat, .b-services, .b-about, .b-projects, .b-cta {
    grid-column: span 12;
  }

  .svc-list { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 3rem 1.5rem 2rem; }
  .bento-wrap { padding: 0 1.5rem 2.5rem; }

  .b-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .svc-list { grid-template-columns: 1fr; }

  .hero h1  { font-size: 2rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-main,
  .hero-actions .btn-outline { justify-content: center; }

  .proj-pills { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .nav-inner { padding: 0.85rem 1.25rem; }
  .bento-wrap { padding: 0 1.25rem 2rem; }
  .hero { padding: 2.5rem 1.25rem 1.5rem; }
}

a.proj-item {
  display: flex;
  color: inherit;
  text-decoration: none;
}
