/*
Theme Name: DreamIT Site
Theme URI: https://dreamithost.com.au
Author: DreamIT Host
Description: Multi-page website theme for DreamIT Host
Version: 1.0.0
Text Domain: dreamit-site
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-primary: #266FFF;
  --color-primary-dark: #1a5ce0;
  --color-dark-blue: #0A1E5A;
  --color-light-blue: #5ABEFA;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-bg-alt: #F8F9FA;
  --color-border: #EEEEEE;
  --shadow-card: 0 4px 20px rgba(10, 30, 90, 0.08);
  --shadow-button: 0 4px 12px rgba(38, 111, 255, 0.3);
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   Skip Link
   ============================================================ */
.dreamit-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 101;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition-fast);
}

.dreamit-skip-link:focus {
  top: 0;
}

/* ============================================================
   Layout
   ============================================================ */
.dreamit-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.dreamit-main {
  display: block;
}

.dreamit-content {
  display: block;
}

/* ============================================================
   Header
   ============================================================ */
.dreamit-header {
  position: sticky;
  top: 0;
  background-color: var(--color-dark-blue);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dreamit-header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.dreamit-header__inner {
  display: flex;
  align-items: center;
}

.dreamit-header__brand {
  display: flex;
  align-items: center;
}

.dreamit-header__logo-link {
  display: block;
}

.dreamit-header__logo-link svg {
  height: 36px;
  width: auto;
  display: block;
}

.dreamit-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

.dreamit-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.dreamit-header__nav {
  display: flex;
  align-items: center;
}

.dreamit-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dreamit-menu a {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-block;
}

.dreamit-menu a:hover {
  color: var(--color-light-blue);
}

.dreamit-menu__link-text {
  display: inline;
}

/* ============================================================
   Hero
   ============================================================ */
.dreamit-hero {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-primary) 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.dreamit-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 90, 0.2);
  pointer-events: none;
}

.dreamit-hero__container {
  max-width: 800px;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.dreamit-hero__content {
  display: block;
}

.dreamit-hero__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.dreamit-hero__tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.5;
}

.dreamit-hero__cta {
  display: inline-block;
}

/* ============================================================
   Buttons
   ============================================================ */
.dreamit-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.dreamit-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

/* ============================================================
   Sections
   ============================================================ */
.dreamit-section {
  padding: 80px 0;
}

.dreamit-section--alt {
  background-color: var(--color-bg-alt);
}

.dreamit-section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================================
   Page Header
   ============================================================ */
.dreamit-page-header {
  background-color: var(--color-bg-alt);
  padding: 60px 0 40px;
  text-align: center;
}

.dreamit-page-header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.dreamit-page-header__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: 1.3;
}

/* ============================================================
   Grids
   ============================================================ */
.dreamit-grid {
  display: grid;
  gap: 24px;
}

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

.dreamit-grid--3-col {
  grid-template-columns: repeat(3, 1fr);
}

.dreamit-grid--4-col {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   Cards
   ============================================================ */
.dreamit-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
  height: 100%;
}

.dreamit-card:hover {
  transform: translateY(-4px);
}

/* ============================================================
   Pricing Cards
   ============================================================ */
.dreamit-pricing-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-primary);
  transition: transform var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dreamit-pricing-card--featured {
  border-top-color: var(--color-dark-blue);
  transform: scale(1.03);
}

.dreamit-pricing-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.dreamit-pricing-card__price {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: 16px 0;
  line-height: 1.1;
}

.dreamit-pricing-card__period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.dreamit-pricing-card__description {
  margin-bottom: 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.dreamit-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.dreamit-pricing-card__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  font-size: 15px;
}

.dreamit-pricing-card__features li::before {
  content: "✓";
  color: var(--color-primary);
  margin-right: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.dreamit-pricing-card__features li:last-child {
  border-bottom: none;
}

.dreamit-pricing-card__cta {
  margin-top: 24px;
  width: 100%;
}

/* ============================================================
   Features
   ============================================================ */
.dreamit-feature {
  text-align: center;
  padding: 24px;
}

.dreamit-feature__icon {
  width: 64px;
  height: 64px;
  background-color: rgba(38, 111, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.dreamit-feature__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  fill: currentColor;
}

.dreamit-feature__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 12px;
}

.dreamit-feature__description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */
.dreamit-footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 60px 0 0;
}

.dreamit-footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.dreamit-footer__brand {
  margin-bottom: 24px;
}

.dreamit-footer__logo-link svg {
  height: 36px;
  width: auto;
  display: block;
}

.dreamit-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.dreamit-footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: color var(--transition-fast);
}

.dreamit-footer__nav a:hover {
  color: var(--color-light-blue);
}

.dreamit-footer__social {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.dreamit-footer__social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.dreamit-footer__social a:hover {
  background-color: var(--color-primary);
}

.dreamit-footer__social a svg {
  width: 20px;
  height: 20px;
  color: var(--color-white);
  fill: currentColor;
}

.dreamit-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dreamit-footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.dreamit-footer__legal {
  display: flex;
  gap: 24px;
}

.dreamit-footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.dreamit-footer__legal a:hover {
  color: var(--color-light-blue);
}

/* ============================================================
   Front Page
   ============================================================ */
.dreamit-front-page {
  display: block;
}

.dreamit-front-page__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.dreamit-front-page__article {
  display: block;
}

/* ============================================================
   Entry Content
   ============================================================ */
.dreamit-entry__content {
  line-height: 1.7;
  color: var(--color-text);
}

.dreamit-entry__content p {
  margin-bottom: 20px;
}

.dreamit-entry__content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-dark-blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.dreamit-entry__content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-dark-blue);
  font-size: 22px;
  font-weight: 700;
}

.dreamit-entry__content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.dreamit-entry__content ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.dreamit-entry__content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.dreamit-entry__content ol li {
  margin-bottom: 8px;
  list-style: decimal;
}

.dreamit-entry__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dreamit-entry__content a:hover {
  color: var(--color-primary-dark);
}

.dreamit-entry__content img {
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* ============================================================
   Social
   ============================================================ */
.dreamit-social {
  display: flex;
  gap: 12px;
}

.dreamit-social__item {
  display: block;
}

.dreamit-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-fast);
}

.dreamit-social__link:hover {
  background-color: var(--color-primary);
}

.dreamit-social__link--facebook:hover {
  background-color: #1877F2;
}

.dreamit-social__link--twitter:hover {
  background-color: #1DA1F2;
}

.dreamit-social__link--linkedin:hover {
  background-color: #0A66C2;
}

.dreamit-social__icon {
  width: 20px;
  height: 20px;
  color: var(--color-white);
  fill: currentColor;
}

/* ============================================================
   Text Utilities
   ============================================================ */
.dreamit-text-center {
  text-align: center;
}

/* ============================================================
   WordPress Defaults
   ============================================================ */
.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.aligncenter {
  display: block;
  margin: 0 auto 16px;
}

.wp-caption {
  max-width: 100%;
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.wp-caption img {
  margin-bottom: 8px;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-primary);
  color: var(--color-white);
  z-index: 101;
}

/* ============================================================
   Responsive: Tablet (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) and (min-width: 768px) {
  .dreamit-grid--4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Responsive: Mobile (below 768px)
   ============================================================ */
@media (max-width: 767px) {
  .dreamit-grid--2-col,
  .dreamit-grid--3-col,
  .dreamit-grid--4-col {
    grid-template-columns: 1fr;
  }

  .dreamit-hero__title {
    font-size: 32px;
  }

  .dreamit-section {
    padding: 48px 0;
  }

  .dreamit-pricing-card--featured {
    transform: none;
  }

  .dreamit-page-header__title {
    font-size: 28px;
  }

  .dreamit-header__toggle {
    display: flex;
  }

  .dreamit-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark-blue);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    transition: right var(--transition-medium);
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .dreamit-header__nav.active {
    right: 0;
  }

  .dreamit-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .dreamit-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

  .dreamit-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .dreamit-footer__legal {
    justify-content: center;
  }

  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 0 auto 16px;
  }
}

/* ============================================================
   Responsive: Mobile Menu Overlay
   ============================================================ */
@media (max-width: 1023px) {
  .dreamit-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark-blue);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    transition: right var(--transition-medium);
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .dreamit-header__nav.active {
    right: 0;
  }

  .dreamit-header__toggle {
    display: flex;
  }

  .dreamit-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .dreamit-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }
}
